aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s5pv210/mach-goni.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-01-06 12:42:25 -0800
committerOlof Johansson <olof@lixom.net>2012-01-06 12:42:25 -0800
commit54b6c82ac9a124804816f244f587c0f40d25ad01 (patch)
treeccc18e9d71bb1b9dc1a69a2ba7ff18d8e376f7b3 /arch/arm/mach-s5pv210/mach-goni.c
parentae852749438df6cb2c3ea0a015863010ecd3be0d (diff)
parent65db039bf7402f0a5b19cbf6dcff55ebea433b8b (diff)
Merge branch 'samsung/cleanup' into next/cleanup2
* samsung/cleanup: ARM: EXYNOS: Use gpio_request_one ARM: S5PV210: Use gpio_request_one ARM: SAMSUNG: Use kmemdup rather than duplicating its implementation ARM: EXYNOS: remove exynos4_scu_enable()
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-goni.c')
-rw-r--r--arch/arm/mach-s5pv210/mach-goni.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c
index 15edcae448b..e2754e9bd6b 100644
--- a/arch/arm/mach-s5pv210/mach-goni.c
+++ b/arch/arm/mach-s5pv210/mach-goni.c
@@ -227,8 +227,7 @@ static void __init goni_radio_init(void)
i2c1_devs[0].irq = gpio_to_irq(gpio);
gpio = S5PV210_GPJ2(5); /* XMSMDATA_5 */
- gpio_request(gpio, "FM_RST");
- gpio_direction_output(gpio, 1);
+ gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "FM_RST");
}
/* TSP */
@@ -264,8 +263,7 @@ static void __init goni_tsp_init(void)
int gpio;
gpio = S5PV210_GPJ1(3); /* XMSMADDR_11 */
- gpio_request(gpio, "TSP_LDO_ON");
- gpio_direction_output(gpio, 1);
+ gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "TSP_LDO_ON");
gpio_export(gpio, 0);
gpio = S5PV210_GPJ0(5); /* XMSMADDR_5 */