[ar71xx] create firmware image for the Ubiquiti LS-SR71 board
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1095-use-gpio-control-leds.patch
1 From a320183ac1d4bd8a430ef9f3e3b957ed4177454b Mon Sep 17 00:00:00 2001
2 From: Willie <willie_chen@openmoko.com>
3 Date: Sun, 13 Apr 2008 07:25:50 +0100
4 Subject: [PATCH] use gpio control leds
5
6 ---
7 drivers/leds/leds-neo1973-gta02.c | 9 ++++-----
8 1 files changed, 4 insertions(+), 5 deletions(-)
9
10 diff --git a/drivers/leds/leds-neo1973-gta02.c b/drivers/leds/leds-neo1973-gta02.c
11 index bf1d540..e442e48 100644
12 --- a/drivers/leds/leds-neo1973-gta02.c
13 +++ b/drivers/leds/leds-neo1973-gta02.c
14 @@ -127,22 +127,22 @@ static int __init gta02led_probe(struct platform_device *pdev)
15
16 switch (lp->gpio) {
17 case S3C2410_GPB0:
18 - lp->has_pwm = 1;
19 + lp->has_pwm = 0;
20 lp->pwm.timerid = PWM0;
21 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB0_TOUT0);
22 break;
23 case S3C2410_GPB1:
24 - lp->has_pwm = 1;
25 + lp->has_pwm = 0;
26 lp->pwm.timerid = PWM1;
27 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB1_TOUT1);
28 break;
29 case S3C2410_GPB2:
30 - lp->has_pwm = 1;
31 + lp->has_pwm = 0;
32 lp->pwm.timerid = PWM2;
33 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB2_TOUT2);
34 break;
35 case S3C2410_GPB3:
36 - lp->has_pwm = 1;
37 + lp->has_pwm = 0;
38 lp->pwm.timerid = PWM3;
39 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB3_TOUT3);
40 break;
41 @@ -167,7 +167,6 @@ static int __init gta02led_probe(struct platform_device *pdev)
42 break;
43 default:
44 break;
45 - }
46
47 mutex_init(&lp->mutex);
48 rc = led_classdev_register(&pdev->dev, &lp->cdev);
49 --
50 1.5.6.5
51
This page took 0.048957 seconds and 5 git commands to generate.