[PATCH v2 3/3] ARM: mx5/mx51_babbage: Fix the msleep placement

Fabio Estevam festevam at gmail.com
Thu Apr 28 20:43:24 EDT 2011


Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 arch/arm/mach-mx5/board-mx51_babbage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 00203fb..1c4704a 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -186,8 +186,8 @@ static int gpio_usbh1_active(void)
 		pr_debug("failed to get MX51_PAD_USBH1_STP__GPIO_1_27: %d\n", ret);
 		return ret;
 	}
-	gpio_set_value(BABBAGE_USBH1_STP, 1);
 	msleep(100);
+	gpio_set_value(BABBAGE_USBH1_STP, 1);
 	gpio_free(BABBAGE_USBH1_STP);
 
 	/* De-assert USB PHY RESETB */
-- 
1.6.0.4




More information about the linux-arm-kernel mailing list