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