]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Start using otg_set_transceiver()
authorTony Lindgren <tony@atomide.com>
Sun, 9 Sep 2007 01:27:05 +0000 (18:27 -0700)
committerTony Lindgren <tony@atomide.com>
Sun, 9 Sep 2007 01:27:05 +0000 (18:27 -0700)
Start using otg_set_transceiver()

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_core.c

index 65f288e4d8202c89202dec2d51f7de44ae82f8c5..40ca9671a0be9e07ef0c3be5488c8ef82899e62b 100644 (file)
@@ -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