summaryrefslogtreecommitdiff
path: root/arch/arm/mach-exynos/mach-nuri.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-nuri.c
parent2f4f0b42193322987c534c928e3555e3936090e1 (diff)
downloadkernel-common-321655efad26e03141b0bbfcfa9875056c1acb65.tar.gz
kernel-common-321655efad26e03141b0bbfcfa9875056c1acb65.tar.bz2
kernel-common-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-nuri.c')
-rw-r--r--arch/arm/mach-exynos/mach-nuri.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c
index 236bbe187163..205dfed41210 100644
--- a/arch/arm/mach-exynos/mach-nuri.c
+++ b/arch/arm/mach-exynos/mach-nuri.c
@@ -247,13 +247,8 @@ static void nuri_lcd_power_on(struct plat_lcd_data *pd, unsigned int power)
static int nuri_bl_init(struct device *dev)
{
- int ret, gpio = EXYNOS4_GPE2(3);
-
- ret = gpio_request(gpio, "LCD_LDO_EN");
- if (!ret)
- gpio_direction_output(gpio, 0);
-
- return ret;
+ return gpio_request_one(EXYNOS4_GPE2(3), GPIOF_OUT_INIT_LOW,
+ "LCD_LD0_EN");
}
static int nuri_bl_notify(struct device *dev, int brightness)