summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2008-12-03 08:11:17 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-01-08 12:38:58 +0000
commit12276efcc85f3108174893bff8878e0dc655b066 (patch)
tree56676c39c0e6c93cbf997544c1995410a2e3fa14 /drivers/leds
parentec1496193d53ebd8d79cdf1d6d7d4970ef342af2 (diff)
downloadop-kernel-dev-12276efcc85f3108174893bff8878e0dc655b066.zip
op-kernel-dev-12276efcc85f3108174893bff8878e0dc655b066.tar.gz
leds: Fix wrong loop direction on removal in leds-ams-delta
We want to go upwards, not downwards. Signed-off-by: Sven Wegener <sven.wegener@stealer.net> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-ams-delta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-ams-delta.c b/drivers/leds/leds-ams-delta.c
index da6242a..072157c 100644
--- a/drivers/leds/leds-ams-delta.c
+++ b/drivers/leds/leds-ams-delta.c
@@ -127,7 +127,7 @@ static int ams_delta_led_remove(struct platform_device *pdev)
{
int i;
- for (i = 0; i < ARRAY_SIZE(ams_delta_leds); i--)
+ for (i = 0; i < ARRAY_SIZE(ams_delta_leds); i++)
led_classdev_unregister(&ams_delta_leds[i].cdev);
return 0;
OpenPOWER on IntegriCloud