diff options
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31moboard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c index fe18cd513cd7..c357a72ee406 100644 --- a/arch/arm/mach-mx3/mach-mx31moboard.c +++ b/arch/arm/mach-mx3/mach-mx31moboard.c | |||
@@ -352,9 +352,7 @@ static struct fsl_usb2_platform_data usb_pdata = { | |||
352 | 352 | ||
353 | static int moboard_usbh2_hw_init(struct platform_device *pdev) | 353 | static int moboard_usbh2_hw_init(struct platform_device *pdev) |
354 | { | 354 | { |
355 | int ret = gpio_request(USBH2_EN_B, "usbh2-en"); | 355 | int ret; |
356 | if (ret) | ||
357 | return ret; | ||
358 | 356 | ||
359 | mxc_iomux_set_gpr(MUX_PGP_UH2, true); | 357 | mxc_iomux_set_gpr(MUX_PGP_UH2, true); |
360 | 358 | ||
@@ -371,6 +369,9 @@ static int moboard_usbh2_hw_init(struct platform_device *pdev) | |||
371 | mxc_iomux_set_pad(MX31_PIN_SRXD3, USB_PAD_CFG); | 369 | mxc_iomux_set_pad(MX31_PIN_SRXD3, USB_PAD_CFG); |
372 | mxc_iomux_set_pad(MX31_PIN_STXD3, USB_PAD_CFG); | 370 | mxc_iomux_set_pad(MX31_PIN_STXD3, USB_PAD_CFG); |
373 | 371 | ||
372 | ret = gpio_request(USBH2_EN_B, "usbh2-en"); | ||
373 | if (ret) | ||
374 | return ret; | ||
374 | gpio_direction_output(USBH2_EN_B, 0); | 375 | gpio_direction_output(USBH2_EN_B, 0); |
375 | 376 | ||
376 | return 0; | 377 | return 0; |