From patchwork Thu May 5 07:15:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinath@mistralsolutions.com X-Patchwork-Id: 756202 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4581In1003922 for ; Thu, 5 May 2011 08:01:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752930Ab1EEIAf (ORCPT ); Thu, 5 May 2011 04:00:35 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:35794 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751051Ab1EEIAf (ORCPT ); Thu, 5 May 2011 04:00:35 -0400 Received: by pwi15 with SMTP id 15so875077pwi.19 for ; Thu, 05 May 2011 01:00:34 -0700 (PDT) Received: by 10.68.55.163 with SMTP id t3mr2771340pbp.281.1304582434537; Thu, 05 May 2011 01:00:34 -0700 (PDT) Received: from localhost ([220.227.202.101]) by mx.google.com with ESMTPS id b4sm1273503pbo.80.2011.05.05.01.00.30 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 May 2011 01:00:33 -0700 (PDT) From: srinath@mistralsolutions.com To: linux-omap@vger.kernel.org Cc: jdk@ti.com, tony@atomide.com, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, khilman@deeprootsystems.com, nagendra@mistralsolutions.com, umeshk@mistralsolutions.com, "Srinath.R" Subject: [Patch v1] AM35xx-Craneboard:Update Date: Thu, 5 May 2011 12:45:08 +0530 Message-Id: <1304579708-16018-1-git-send-email-srinath@mistralsolutions.com> X-Mailer: git-send-email 1.7.1.226.g770c5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 05 May 2011 08:01:19 +0000 (UTC) From: Srinath.R Replaced gpio_request()/gpio_direction_output() with gpio_request_one() in am3517_crane_init. Signed-off-by: Srinath.R --- arch/arm/mach-omap2/board-am3517crane.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c index a890d24..b8c7150 100644 --- a/arch/arm/mach-omap2/board-am3517crane.c +++ b/arch/arm/mach-omap2/board-am3517crane.c @@ -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); }