]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: USB: Fix compile warnings in board-2430sdp-usb.c
authorAnand Gadiyar <gadiyar@ti.com>
Fri, 23 Nov 2007 15:40:34 +0000 (21:10 +0530)
committerTony Lindgren <tony@atomide.com>
Fri, 23 Nov 2007 21:45:51 +0000 (13:45 -0800)
Fixes warnings during compilation with CONFIG_USB_GADGET_MUSB_HDRC=y

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-2430sdp-usb.c

index 938f3cd85f86d0073b13bb074feb4d1a9c3b40ca..908a0c0be5b123e206e72bfd8a9db0a1d0a8ba02 100644 (file)
@@ -37,9 +37,9 @@ static struct resource musb_resources[] = {
 static struct musb_hdrc_platform_data musb_plat = {
 #ifdef CONFIG_USB_MUSB_OTG
        .mode           = MUSB_OTG,
 static struct musb_hdrc_platform_data musb_plat = {
 #ifdef CONFIG_USB_MUSB_OTG
        .mode           = MUSB_OTG,
-#elif CONFIG_USB_MUSB_HDRC_HCD
+#elif defined(CONFIG_USB_MUSB_HDRC_HCD)
        .mode           = MUSB_HOST,
        .mode           = MUSB_HOST,
-#elif CONFIG_USB_GADGET_MUSB_HDRC
+#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
        .mode           = MUSB_PERIPHERAL,
 #endif
        .multipoint     = 1,
        .mode           = MUSB_PERIPHERAL,
 #endif
        .multipoint     = 1,