diff options
author | Jingoo Han <jg1.han@samsung.com> | 2011-12-23 21:58:32 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-12-23 21:58:32 -0500 |
commit | 321655efad26e03141b0bbfcfa9875056c1acb65 (patch) | |
tree | 63febf6f8db81f9ee3f00595d762dc7d7b84f112 /arch/arm/mach-exynos/mach-smdkv310.c | |
parent | 2f4f0b42193322987c534c928e3555e3936090e1 (diff) |
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.c | 4 |
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, | |||
129 | gpio_free(EXYNOS4_GPD0(1)); | 129 | gpio_free(EXYNOS4_GPD0(1)); |
130 | #endif | 130 | #endif |
131 | /* fire nRESET on power up */ | 131 | /* fire nRESET on power up */ |
132 | gpio_request(EXYNOS4_GPX0(6), "GPX0"); | 132 | gpio_request_one(EXYNOS4_GPX0(6), GPIOF_OUT_INIT_HIGH, "GPX0"); |
133 | |||
134 | gpio_direction_output(EXYNOS4_GPX0(6), 1); | ||
135 | mdelay(100); | 133 | mdelay(100); |
136 | 134 | ||
137 | gpio_set_value(EXYNOS4_GPX0(6), 0); | 135 | gpio_set_value(EXYNOS4_GPX0(6), 0); |