On Fri, Dec 10, 2010 at 06:10:51PM +0530, Hema HK wrote:
@@ -214,9 +235,62 @@ static inline void omap2430_low_level_in musb_writel(musb->mregs, OTG_FORCESTDBY, l); } +/* blocking notifier support */ +static int musb_otg_notifications(struct notifier_block *nb, + unsigned long event, void *unused) +{ + struct musb *musb = container_of(nb, struct musb, nb); + struct device *dev = musb->controller; + struct musb_hdrc_platform_data *pdata = dev->platform_data; + struct omap_musb_board_data *data = pdata->board_data; + + switch (event) { + case USB_EVENT_ID: + DBG(4, "ID GND\n"); + + if (is_otg_enabled(musb)) { + if (musb->gadget_driver) {
This breaks compilation: drivers/usb/musb/omap2430.c: In function 'musb_otg_notifications': drivers/usb/musb/omap2430.c:252: error: 'struct musb' has no member named 'gadget_driver' make[2]: *** [drivers/usb/musb/omap2430.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [drivers/usb/musb] Error 2 make: *** [drivers] Error 2 you need to ifdef that. -- balbi -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html