diff options
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31moboard.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31moboard.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c index 845d0b6b2539..6f3692bccb8a 100644 --- a/arch/arm/mach-mx3/mach-mx31moboard.c +++ b/arch/arm/mach-mx3/mach-mx31moboard.c | |||
@@ -400,7 +400,6 @@ static void usb_xcvr_reset(void) | |||
400 | mdelay(1); | 400 | mdelay(1); |
401 | } | 401 | } |
402 | 402 | ||
403 | #if defined(CONFIG_USB_ULPI) | ||
404 | static int moboard_usbh2_init_hw(struct platform_device *pdev) | 403 | static int moboard_usbh2_init_hw(struct platform_device *pdev) |
405 | { | 404 | { |
406 | return mx31_initialize_usb_hw(pdev->id, MXC_EHCI_POWER_PINS_ENABLED); | 405 | return mx31_initialize_usb_hw(pdev->id, MXC_EHCI_POWER_PINS_ENABLED); |
@@ -415,8 +414,10 @@ static int __init moboard_usbh2_init(void) | |||
415 | { | 414 | { |
416 | struct platform_device *pdev; | 415 | struct platform_device *pdev; |
417 | 416 | ||
418 | usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | 417 | usbh2_pdata.otg = imx_otg_ulpi_create(ULPI_OTG_DRVVBUS | |
419 | ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); | 418 | ULPI_OTG_DRVVBUS_EXT); |
419 | if (!usbh2_pdata.otg) | ||
420 | return -ENODEV; | ||
420 | 421 | ||
421 | pdev = imx31_add_mxc_ehci_hs(2, &usbh2_pdata); | 422 | pdev = imx31_add_mxc_ehci_hs(2, &usbh2_pdata); |
422 | if (IS_ERR(pdev)) | 423 | if (IS_ERR(pdev)) |
@@ -424,10 +425,6 @@ static int __init moboard_usbh2_init(void) | |||
424 | 425 | ||
425 | return 0; | 426 | return 0; |
426 | } | 427 | } |
427 | #else | ||
428 | static inline int moboard_usbh2_init(void) { return 0; } | ||
429 | #endif | ||
430 | |||
431 | 428 | ||
432 | static struct gpio_led mx31moboard_leds[] = { | 429 | static struct gpio_led mx31moboard_leds[] = { |
433 | { | 430 | { |