mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
USB: musb_hdrc: another davinci buildfix (otg related)
The DaVinci code had an implementation of the OTG transceiver glue too; make it use the new-standard one. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
10b4eadef1
commit
37daa925cf
2 changed files with 1 additions and 23 deletions
|
@ -77,29 +77,6 @@ static struct platform_device usb_dev = {
|
||||||
.num_resources = ARRAY_SIZE(usb_resources),
|
.num_resources = ARRAY_SIZE(usb_resources),
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_USB_MUSB_OTG
|
|
||||||
|
|
||||||
static struct otg_transceiver *xceiv;
|
|
||||||
|
|
||||||
struct otg_transceiver *otg_get_transceiver(void)
|
|
||||||
{
|
|
||||||
if (xceiv)
|
|
||||||
get_device(xceiv->dev);
|
|
||||||
return xceiv;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(otg_get_transceiver);
|
|
||||||
|
|
||||||
int otg_set_transceiver(struct otg_transceiver *x)
|
|
||||||
{
|
|
||||||
if (xceiv && x)
|
|
||||||
return -EBUSY;
|
|
||||||
xceiv = x;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(otg_set_transceiver);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void __init setup_usb(unsigned mA, unsigned potpgt_msec)
|
void __init setup_usb(unsigned mA, unsigned potpgt_msec)
|
||||||
{
|
{
|
||||||
usb_data.power = mA / 2;
|
usb_data.power = mA / 2;
|
||||||
|
|
|
@ -11,6 +11,7 @@ config USB_MUSB_HDRC
|
||||||
depends on (USB || USB_GADGET) && HAVE_CLK
|
depends on (USB || USB_GADGET) && HAVE_CLK
|
||||||
depends on !SUPERH
|
depends on !SUPERH
|
||||||
select TWL4030_USB if MACH_OMAP_3430SDP
|
select TWL4030_USB if MACH_OMAP_3430SDP
|
||||||
|
select USB_OTG_UTILS
|
||||||
tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
|
tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
|
||||||
help
|
help
|
||||||
Say Y here if your system has a dual role high speed USB
|
Say Y here if your system has a dual role high speed USB
|
||||||
|
|
Loading…
Add table
Reference in a new issue