Re: [PATCH 7/8 V2] usb: musb: Adding musb support for OMAP4430

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux