[PATCH 5/7] Updated patchset, Janitor and GPIO GPB/LED work

Holger Freyther zecke at openmoko.org
Thu Apr 10 05:35:07 CEST 2008


From daf763dfe0f87fe001b064da60c8b961fe972d8b Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Thu, 10 Apr 2008 05:02:40 +0200
Subject: [PATCH] [leds] The pwm code is currently disabled, no need to enable and start the pwm
     There is no use to enable and start the pwm as we are currently
     not using it. Leave the code in the module as we want to use the PWM in the
     future.

Signed-Off-By: Holger Freyther <zecke at openmoko.org>
---
 drivers/leds/leds-neo1973-gta02.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/leds/leds-neo1973-gta02.c b/drivers/leds/leds-neo1973-gta02.c
index 343550a..f3c7bab 100644
--- a/drivers/leds/leds-neo1973-gta02.c
+++ b/drivers/leds/leds-neo1973-gta02.c
@@ -125,6 +125,7 @@ static int __init gta02led_probe(struct platform_device *pdev)
 		lp->cdev.name = r->name;
 		lp->cdev.brightness_set = gta02led_set;
 
+#if 0
 		switch (lp->gpio) {
 		case S3C2410_GPB0:
 			lp->has_pwm = 1;
@@ -156,6 +157,7 @@ static int __init gta02led_probe(struct platform_device *pdev)
 		lp->pwm.comparer = COUNTER;
 		s3c2410_pwm_enable(&lp->pwm);
 		s3c2410_pwm_start(&lp->pwm);
+#endif
 
 		switch (lp->gpio) {
 		case S3C2410_GPB0:
-- 
1.5.3







More information about the openmoko-kernel mailing list