From: srinath@mistralsolutions.com
To: linux-omap@vger.kernel.org
Cc: linux@arm.linux.org.uk, umeshk@mistralsolutions.com,
tony@atomide.com, nagendra@mistralsolutions.com,
"Srinath.R" <srinath@mistralsolutions.com>,
linux-kernel@vger.kernel.org, khilman@deeprootsystems.com,
jdk@ti.com, linux-arm-kernel@lists.infradead.org
Subject: [Patch v1] AM35xx-Craneboard:Update
Date: Thu, 5 May 2011 12:45:08 +0530 [thread overview]
Message-ID: <1304579708-16018-1-git-send-email-srinath@mistralsolutions.com> (raw)
From: Srinath.R <srinath@mistralsolutions.com>
Replaced gpio_request()/gpio_direction_output() with gpio_request_one() in am3517_crane_init.
Signed-off-by: Srinath.R <srinath@mistralsolutions.com>
---
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);
}
--
1.5.3.4
next reply other threads:[~2011-05-05 7:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-05 7:15 srinath [this message]
2011-05-05 8:46 ` [Patch v1] AM35xx-Craneboard:Update Igor Grinberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1304579708-16018-1-git-send-email-srinath@mistralsolutions.com \
--to=srinath@mistralsolutions.com \
--cc=jdk@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=nagendra@mistralsolutions.com \
--cc=tony@atomide.com \
--cc=umeshk@mistralsolutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).