]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/mach-mx3/mx31moboard.c
imx/mx3: depend on USB_ULPI for otg_ulpi_create
[net-next-2.6.git] / arch / arm / mach-mx3 / mx31moboard.c
index 839f09aef8b23bd874ed2a5430312c22ce60714b..cfd605d078ecf5969b8e2bbaf4b7d380de418d1d 100644 (file)
@@ -346,6 +346,8 @@ static struct fsl_usb2_platform_data usb_pdata = {
        .phy_mode       = FSL_USB2_PHY_ULPI,
 };
 
+#if defined(CONFIG_USB_ULPI)
+
 #define USBH2_EN_B IOMUX_TO_GPIO(MX31_PIN_SCK6)
 
 static int moboard_usbh2_hw_init(struct platform_device *pdev)
@@ -394,6 +396,9 @@ static int __init moboard_usbh2_init(void)
 
        return mxc_register_device(&mxc_usbh2, &usbh2_pdata);
 }
+#else
+static inline int moboard_usbh2_init(void) { return 0; }
+#endif
 
 
 static struct gpio_led mx31moboard_leds[] = {