aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-01-06 15:31:41 -0500
committerOlof Johansson <olof@lixom.net>2012-01-06 15:31:41 -0500
commit65db039bf7402f0a5b19cbf6dcff55ebea433b8b (patch)
treeccc18e9d71bb1b9dc1a69a2ba7ff18d8e376f7b3 /arch/arm/mach-s5pv210
parent8a44930a11de8d66f92145fd2d2464ab4fba696b (diff)
parent321655efad26e03141b0bbfcfa9875056c1acb65 (diff)
Merge branch 'next-samsung-cleanup-samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into samsung/cleanup
Diffstat (limited to 'arch/arm/mach-s5pv210')
-rw-r--r--arch/arm/mach-s5pv210/mach-aquila.c3
-rw-r--r--arch/arm/mach-s5pv210/mach-goni.c6
-rw-r--r--arch/arm/mach-s5pv210/mach-smdkv210.c10
3 files changed, 6 insertions, 13 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 = {
595 595
596static void aquila_setup_sdhci(void) 596static void aquila_setup_sdhci(void)
597{ 597{
598 gpio_request(AQUILA_EXT_FLASH_EN, "FLASH_EN"); 598 gpio_request_one(AQUILA_EXT_FLASH_EN, GPIOF_OUT_INIT_HIGH, "FLASH_EN");
599 gpio_direction_output(AQUILA_EXT_FLASH_EN, 1);
600 599
601 s3c_sdhci0_set_platdata(&aquila_hsmmc0_data); 600 s3c_sdhci0_set_platdata(&aquila_hsmmc0_data);
602 s3c_sdhci1_set_platdata(&aquila_hsmmc1_data); 601 s3c_sdhci1_set_platdata(&aquila_hsmmc1_data);
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c
index 15edcae448b9..e2754e9bd6b4 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)
227 i2c1_devs[0].irq = gpio_to_irq(gpio); 227 i2c1_devs[0].irq = gpio_to_irq(gpio);
228 228
229 gpio = S5PV210_GPJ2(5); /* XMSMDATA_5 */ 229 gpio = S5PV210_GPJ2(5); /* XMSMDATA_5 */
230 gpio_request(gpio, "FM_RST"); 230 gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "FM_RST");
231 gpio_direction_output(gpio, 1);
232} 231}
233 232
234/* TSP */ 233/* TSP */
@@ -264,8 +263,7 @@ static void __init goni_tsp_init(void)
264 int gpio; 263 int gpio;
265 264
266 gpio = S5PV210_GPJ1(3); /* XMSMADDR_11 */ 265 gpio = S5PV210_GPJ1(3); /* XMSMADDR_11 */
267 gpio_request(gpio, "TSP_LDO_ON"); 266 gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "TSP_LDO_ON");
268 gpio_direction_output(gpio, 1);
269 gpio_export(gpio, 0); 267 gpio_export(gpio, 0);
270 268
271 gpio = S5PV210_GPJ0(5); /* XMSMADDR_5 */ 269 gpio = S5PV210_GPJ0(5); /* XMSMADDR_5 */
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c
index 8662ef6e5681..513db9234c41 100644
--- a/arch/arm/mach-s5pv210/mach-smdkv210.c
+++ b/arch/arm/mach-s5pv210/mach-smdkv210.c
@@ -153,15 +153,12 @@ static void smdkv210_lte480wv_set_power(struct plat_lcd_data *pd,
153{ 153{
154 if (power) { 154 if (power) {
155#if !defined(CONFIG_BACKLIGHT_PWM) 155#if !defined(CONFIG_BACKLIGHT_PWM)
156 gpio_request(S5PV210_GPD0(3), "GPD0"); 156 gpio_request_one(S5PV210_GPD0(3), GPIOF_OUT_INIT_HIGH, "GPD0");
157 gpio_direction_output(S5PV210_GPD0(3), 1);
158 gpio_free(S5PV210_GPD0(3)); 157 gpio_free(S5PV210_GPD0(3));
159#endif 158#endif
160 159
161 /* fire nRESET on power up */ 160 /* fire nRESET on power up */
162 gpio_request(S5PV210_GPH0(6), "GPH0"); 161 gpio_request_one(S5PV210_GPH0(6), GPIOF_OUT_INIT_HIGH, "GPH0");
163
164 gpio_direction_output(S5PV210_GPH0(6), 1);
165 162
166 gpio_set_value(S5PV210_GPH0(6), 0); 163 gpio_set_value(S5PV210_GPH0(6), 0);
167 mdelay(10); 164 mdelay(10);
@@ -172,8 +169,7 @@ static void smdkv210_lte480wv_set_power(struct plat_lcd_data *pd,
172 gpio_free(S5PV210_GPH0(6)); 169 gpio_free(S5PV210_GPH0(6));
173 } else { 170 } else {
174#if !defined(CONFIG_BACKLIGHT_PWM) 171#if !defined(CONFIG_BACKLIGHT_PWM)
175 gpio_request(S5PV210_GPD0(3), "GPD0"); 172 gpio_request_one(S5PV210_GPD0(3), GPIOF_OUT_INIT_LOW, "GPD0");
176 gpio_direction_output(S5PV210_GPD0(3), 0);
177 gpio_free(S5PV210_GPD0(3)); 173 gpio_free(S5PV210_GPD0(3));
178#endif 174#endif
179 } 175 }