diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-12-03 09:11:17 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-08 13:38:58 +0100 |
commit | 12276efcc85f3108174893bff8878e0dc655b066 (patch) | |
tree | 56676c39c0e6c93cbf997544c1995410a2e3fa14 /drivers/leds | |
parent | leds: fix Cobalt Raq LED dependency (diff) | |
download | linux-12276efcc85f3108174893bff8878e0dc655b066.tar.xz linux-12276efcc85f3108174893bff8878e0dc655b066.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-ams-delta.c b/drivers/leds/leds-ams-delta.c index da6242ad2b66..072157c3ba72 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; |