~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/usb/host/ehci-xilinx-of.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
/**
144
144
 * ehci_hcd_xilinx_of_probe - Probe method for the USB host controller
145
145
 * @op:         pointer to the platform_device bound to the host controller
146
 
 * @match:      pointer to of_device_id structure, not used
147
146
 *
148
147
 * This function requests resources and sets up appropriate properties for the
149
148
 * host controller. Because the Xilinx USB host controller can be configured
150
149
 * as HS only or HS/FS only, it checks the configuration in the device tree
151
150
 * entry, and sets an appropriate value for hcd->has_tt.
152
151
 */
153
 
static int __devinit
154
 
ehci_hcd_xilinx_of_probe(struct platform_device *op, const struct of_device_id *match)
 
152
static int __devinit ehci_hcd_xilinx_of_probe(struct platform_device *op)
155
153
{
156
154
        struct device_node *dn = op->dev.of_node;
157
155
        struct usb_hcd *hcd;
222
220
         */
223
221
        ehci->caps = hcd->regs + 0x100;
224
222
        ehci->regs = hcd->regs + 0x100 +
225
 
                        HC_LENGTH(ehci_readl(ehci, &ehci->caps->hc_capbase));
 
223
                HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase));
226
224
 
227
225
        /* cache this readonly data; minimize chip reads */
228
226
        ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params);
289
287
};
290
288
MODULE_DEVICE_TABLE(of, ehci_hcd_xilinx_of_match);
291
289
 
292
 
static struct of_platform_driver ehci_hcd_xilinx_of_driver = {
 
290
static struct platform_driver ehci_hcd_xilinx_of_driver = {
293
291
        .probe          = ehci_hcd_xilinx_of_probe,
294
292
        .remove         = ehci_hcd_xilinx_of_remove,
295
293
        .shutdown       = ehci_hcd_xilinx_of_shutdown,