From 90e9d11f5e6a780f7279846cc60029d428c29c4a Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Sat, 8 Sep 2007 18:27:05 -0700 Subject: [PATCH] musb_hdrc: Start using otg_set_transceiver() Start using otg_set_transceiver() Signed-off-by: Tony Lindgren --- drivers/usb/musb/musb_core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 65f288e4d82..40ca9671a0b 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1825,6 +1825,9 @@ allocate_instance(struct device *dev, void __iomem *mbase) ep->epnum = epnum; } +#ifdef CONFIG_USB_MUSB_OTG + otg_set_transceiver(&musb->xceiv); +#endif musb->controller = dev; return musb; } @@ -1869,6 +1872,10 @@ static void musb_free(struct musb *musb) clk_put(musb->clock); } +#ifdef CONFIG_USB_MUSB_OTG + put_device(musb->xceiv.dev); +#endif + #ifdef CONFIG_USB_MUSB_HDRC_HCD usb_put_hcd(musb_to_hcd(musb)); #else -- 2.41.1