From: Tony Lindgren Date: Sun, 9 Sep 2007 01:27:05 +0000 (-0700) Subject: musb_hdrc: Start using otg_set_transceiver() X-Git-Tag: v2.6.23-omap1~77 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=90e9d11f5e6a780f7279846cc60029d428c29c4a;p=linux-2.6-omap-h63xx.git musb_hdrc: Start using otg_set_transceiver() Start using otg_set_transceiver() Signed-off-by: Tony Lindgren --- 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