summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210/mach-aquila.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2011-12-24 11:57:09 +0900
committerKukjin Kim <kgene.kim@samsung.com>2011-12-24 11:57:15 +0900
commit2f4f0b42193322987c534c928e3555e3936090e1 (patch)
tree0eb599cec62a171e83521a85ccb1087a0a096162 /arch/arm/mach-s5pv210/mach-aquila.c
parent7803c7aa8ef262a63e91ee0b04470715a7dc2eb0 (diff)
downloadlinux-2f4f0b42193322987c534c928e3555e3936090e1.tar.gz
linux-2f4f0b42193322987c534c928e3555e3936090e1.tar.bz2
linux-2f4f0b42193322987c534c928e3555e3936090e1.zip
ARM: S5PV210: Use gpio_request_one
By using gpio_request_one it is possible to set the direction and initial value in one shot. Thus, using gpio_request_one can make the code simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-aquila.c')
-rw-r--r--arch/arm/mach-s5pv210/mach-aquila.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c
index 5811a96125f0..404ac7aec3c1 100644
--- a/arch/arm/mach-s5pv210/mach-aquila.c
+++ b/arch/arm/mach-s5pv210/mach-aquila.c
@@ -595,8 +595,7 @@ static struct s3c_sdhci_platdata aquila_hsmmc2_data __initdata = {
static void aquila_setup_sdhci(void)
{
- gpio_request(AQUILA_EXT_FLASH_EN, "FLASH_EN");
- gpio_direction_output(AQUILA_EXT_FLASH_EN, 1);
+ gpio_request_one(AQUILA_EXT_FLASH_EN, GPIOF_OUT_INIT_HIGH, "FLASH_EN");
s3c_sdhci0_set_platdata(&aquila_hsmmc0_data);
s3c_sdhci1_set_platdata(&aquila_hsmmc1_data);