summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/mach-smdkv310.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2011-12-24 11:58:32 +0900
committerKukjin Kim <kgene.kim@samsung.com>2011-12-24 11:58:32 +0900
commit321655efad26e03141b0bbfcfa9875056c1acb65 (patch)
tree63febf6f8db81f9ee3f00595d762dc7d7b84f112 /arch/arm/mach-exynos/mach-smdkv310.c
parent2f4f0b42193322987c534c928e3555e3936090e1 (diff)
downloadtalos-obmc-linux-321655efad26e03141b0bbfcfa9875056c1acb65.tar.gz
talos-obmc-linux-321655efad26e03141b0bbfcfa9875056c1acb65.zip
ARM: EXYNOS: 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-exynos/mach-smdkv310.c')
-rw-r--r--arch/arm/mach-exynos/mach-smdkv310.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c
index cec2afabe7b4..cbf31bd0e2c9 100644
--- a/arch/arm/mach-exynos/mach-smdkv310.c
+++ b/arch/arm/mach-exynos/mach-smdkv310.c
@@ -129,9 +129,7 @@ static void lcd_lte480wv_set_power(struct plat_lcd_data *pd,
gpio_free(EXYNOS4_GPD0(1));
#endif
/* fire nRESET on power up */
- gpio_request(EXYNOS4_GPX0(6), "GPX0");
-
- gpio_direction_output(EXYNOS4_GPX0(6), 1);
+ gpio_request_one(EXYNOS4_GPX0(6), GPIOF_OUT_INIT_HIGH, "GPX0");
mdelay(100);
gpio_set_value(EXYNOS4_GPX0(6), 0);
OpenPOWER on IntegriCloud