Skip to contentSkip to conversation

AM35xx-Craneboard:Update

PATCH In review [email protected] 2 participants 2 messages May 5, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AM35xx-Craneboard:Update

From: Srinath.R <[email protected]>

Replaced gpio_request()/gpio_direction_output() with gpio_request_one() in am3517_crane_init.

---
 arch/arm/mach-omap2/board-am3517crane.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
arch/arm/mach-omap2/board-am3517crane.c +2 -8
index a890d24..b8c7150 100644
@@ -89,19 +89,13 @@ static void __init am3517_crane_init(void)
 		return;
 	}
 
-	ret = gpio_request(GPIO_USB_POWER, "usb_ehci_enable");
+	ret = gpio_request_one(GPIO_USB_POWER, GPIOF_OUT_INIT_HIGH,
+				"usb_ehci_enable");
 	if (ret < 0) {
 		pr_err("Can not request GPIO %d\n", GPIO_USB_POWER);
 		return;
 	}
 
-	ret = gpio_direction_output(GPIO_USB_POWER, 1);
-	if (ret < 0) {
-		gpio_free(GPIO_USB_POWER);
-		pr_err("Unable to initialize EHCI power\n");
-		return;
-	}
-
 	usbhs_init(&usbhs_bdata);
 }
 
Signature · 1 line
1.5.3.4