aboutsummaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorWillie <willie_chen@openmoko.com>2008-11-19 17:09:33 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:33 +0000
commit455c5d168fb963396c7fdfa2126def7f086af619 (patch)
treee3639e473c710dc98b839053cb46229b6dba2401 /drivers/leds
parent939532cb22ecfdc9a04574f24941060c1d549f3d (diff)
use gpio control leds
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-neo1973-gta02.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/leds/leds-neo1973-gta02.c b/drivers/leds/leds-neo1973-gta02.c
index bf1d5407025..e442e4883a1 100644
--- a/drivers/leds/leds-neo1973-gta02.c
+++ b/drivers/leds/leds-neo1973-gta02.c
@@ -127,22 +127,22 @@ static int __init gta02led_probe(struct platform_device *pdev)
switch (lp->gpio) {
case S3C2410_GPB0:
- lp->has_pwm = 1;
+ lp->has_pwm = 0;
lp->pwm.timerid = PWM0;
s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB0_TOUT0);
break;
case S3C2410_GPB1:
- lp->has_pwm = 1;
+ lp->has_pwm = 0;
lp->pwm.timerid = PWM1;
s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB1_TOUT1);
break;
case S3C2410_GPB2:
- lp->has_pwm = 1;
+ lp->has_pwm = 0;
lp->pwm.timerid = PWM2;
s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB2_TOUT2);
break;
case S3C2410_GPB3:
- lp->has_pwm = 1;
+ lp->has_pwm = 0;
lp->pwm.timerid = PWM3;
s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB3_TOUT3);
break;
@@ -167,7 +167,6 @@ static int __init gta02led_probe(struct platform_device *pdev)
break;
default:
break;
- }
mutex_init(&lp->mutex);
rc = led_classdev_register(&pdev->dev, &lp->cdev);