summaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1095-use-gpio-control-leds.patch
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
commitfc54b9bf158eea9cae647ce2c58f7d9989af173a (patch)
tree54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.24/1095-use-gpio-control-leds.patch
parentd9f49b62b28ebd245587854efa484974d90debbf (diff)
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1095-use-gpio-control-leds.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1095-use-gpio-control-leds.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1095-use-gpio-control-leds.patch b/target/linux/s3c24xx/patches-2.6.24/1095-use-gpio-control-leds.patch
new file mode 100644
index 000000000..9d19a1603
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1095-use-gpio-control-leds.patch
@@ -0,0 +1,51 @@
+From a320183ac1d4bd8a430ef9f3e3b957ed4177454b Mon Sep 17 00:00:00 2001
+From: Willie <willie_chen@openmoko.com>
+Date: Sun, 13 Apr 2008 07:25:50 +0100
+Subject: [PATCH] use gpio control leds
+
+---
+ drivers/leds/leds-neo1973-gta02.c | 9 ++++-----
+ 1 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/drivers/leds/leds-neo1973-gta02.c b/drivers/leds/leds-neo1973-gta02.c
+index bf1d540..e442e48 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);
+--
+1.5.6.5
+