aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/mach-n30.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-05-06 20:59:11 -0400
committerBen Dooks <ben-linux@fluff.org>2010-05-06 20:59:11 -0400
commit8a19ebb0938752af8da142c4731f310bb8f9d130 (patch)
tree49870722daecaebbfd741327feac87f405653211 /arch/arm/mach-s3c2410/mach-n30.c
parent271d323237a1ab96b74c69fa48a8612963245266 (diff)
ARM: n30: Fixup gpiolib calls for mmc power
Move to using gpio_request() and gpio_set_value() for the MMC power control calls. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-n30.c')
-rw-r--r--arch/arm/mach-s3c2410/mach-n30.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c
index f25275ef8bc8..dfa09eac160c 100644
--- a/arch/arm/mach-s3c2410/mach-n30.c
+++ b/arch/arm/mach-s3c2410/mach-n30.c
@@ -88,10 +88,10 @@ static void n30_udc_pullup(enum s3c2410_udc_cmd_e cmd)
88{ 88{
89 switch (cmd) { 89 switch (cmd) {
90 case S3C2410_UDC_P_ENABLE : 90 case S3C2410_UDC_P_ENABLE :
91 s3c2410_gpio_setpin(S3C2410_GPB(3), 1); 91 gpio_set_value(S3C2410_GPB(3), 1);
92 break; 92 break;
93 case S3C2410_UDC_P_DISABLE : 93 case S3C2410_UDC_P_DISABLE :
94 s3c2410_gpio_setpin(S3C2410_GPB(3), 0); 94 gpio_set_value(S3C2410_GPB(3), 0);
95 break; 95 break;
96 case S3C2410_UDC_P_RESET : 96 case S3C2410_UDC_P_RESET :
97 break; 97 break;
@@ -357,11 +357,11 @@ static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd)
357 switch (power_mode) { 357 switch (power_mode) {
358 case MMC_POWER_ON: 358 case MMC_POWER_ON:
359 case MMC_POWER_UP: 359 case MMC_POWER_UP:
360 s3c2410_gpio_setpin(S3C2410_GPG(4), 1); 360 gpio_set_value(S3C2410_GPG(4), 1);
361 break; 361 break;
362 case MMC_POWER_OFF: 362 case MMC_POWER_OFF:
363 default: 363 default:
364 s3c2410_gpio_setpin(S3C2410_GPG(4), 0); 364 gpio_set_value(S3C2410_GPG(4), 0);
365 break; 365 break;
366 } 366 }
367} 367}
@@ -561,6 +561,8 @@ static void __init n30_init_irq(void)
561 561
562static void __init n30_init(void) 562static void __init n30_init(void)
563{ 563{
564 WARN_ON(gpio_request(S3C2410_GPG(4), "mmc power"));
565
564 s3c24xx_fb_set_platdata(&n30_fb_info); 566 s3c24xx_fb_set_platdata(&n30_fb_info);
565 s3c24xx_udc_set_platdata(&n30_udc_cfg); 567 s3c24xx_udc_set_platdata(&n30_udc_cfg);
566 s3c24xx_mci_set_platdata(&n30_mci_cfg); 568 s3c24xx_mci_set_platdata(&n30_mci_cfg);