diff options
Diffstat (limited to 'arch/arm/mach-davinci/usb.c')
-rw-r--r-- | arch/arm/mach-davinci/usb.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/arch/arm/mach-davinci/usb.c b/arch/arm/mach-davinci/usb.c index fe182a85159c..867ead2559ad 100644 --- a/arch/arm/mach-davinci/usb.c +++ b/arch/arm/mach-davinci/usb.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include <mach/common.h> | 13 | #include <mach/common.h> |
14 | #include <mach/hardware.h> | 14 | #include <mach/hardware.h> |
15 | #include <mach/irqs.h> | ||
15 | 16 | ||
16 | #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) | 17 | #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) |
17 | static struct musb_hdrc_eps_bits musb_eps[] = { | 18 | static struct musb_hdrc_eps_bits musb_eps[] = { |
@@ -76,29 +77,6 @@ static struct platform_device usb_dev = { | |||
76 | .num_resources = ARRAY_SIZE(usb_resources), | 77 | .num_resources = ARRAY_SIZE(usb_resources), |
77 | }; | 78 | }; |
78 | 79 | ||
79 | #ifdef CONFIG_USB_MUSB_OTG | ||
80 | |||
81 | static struct otg_transceiver *xceiv; | ||
82 | |||
83 | struct otg_transceiver *otg_get_transceiver(void) | ||
84 | { | ||
85 | if (xceiv) | ||
86 | get_device(xceiv->dev); | ||
87 | return xceiv; | ||
88 | } | ||
89 | EXPORT_SYMBOL(otg_get_transceiver); | ||
90 | |||
91 | int otg_set_transceiver(struct otg_transceiver *x) | ||
92 | { | ||
93 | if (xceiv && x) | ||
94 | return -EBUSY; | ||
95 | xceiv = x; | ||
96 | return 0; | ||
97 | } | ||
98 | EXPORT_SYMBOL(otg_set_transceiver); | ||
99 | |||
100 | #endif | ||
101 | |||
102 | void __init setup_usb(unsigned mA, unsigned potpgt_msec) | 80 | void __init setup_usb(unsigned mA, unsigned potpgt_msec) |
103 | { | 81 | { |
104 | usb_data.power = mA / 2; | 82 | usb_data.power = mA / 2; |