diff options
author | Jassi Brar <jaswinder.singh@linaro.org> | 2011-04-15 09:32:59 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-04-15 09:32:59 +0100 |
commit | 947d1b6b7341c5d9fda5ff7d5f4e76545996d2d5 (patch) | |
tree | b24d8697731a0d2558a7ed0b09a93c5d9693649e | |
parent | 3ec10cd8b526c6b10170c2649002672ee2019e73 (diff) |
MUSB: omap2430: Compile conditionally gadget_driver
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r-- | drivers/usb/musb/omap2430.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 25cb8b0003b..50d2694409d 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -259,8 +259,10 @@ static int musb_otg_notifications(struct notifier_block *nb, case USB_EVENT_VBUS: DBG(4, "VBUS Connect\n"); +#ifdef CONFIG_USB_GADGET_MUSB_HDRC if (musb->gadget_driver) pm_runtime_get_sync(musb->controller); +#endif otg_init(musb->xceiv); break; |