diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-12-03 08:11:17 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-08 12:38:58 +0000 |
commit | 12276efcc85f3108174893bff8878e0dc655b066 (patch) | |
tree | 56676c39c0e6c93cbf997544c1995410a2e3fa14 /drivers/leds/leds-ams-delta.c | |
parent | ec1496193d53ebd8d79cdf1d6d7d4970ef342af2 (diff) | |
download | linux-3.10-12276efcc85f3108174893bff8878e0dc655b066.tar.gz linux-3.10-12276efcc85f3108174893bff8878e0dc655b066.tar.bz2 linux-3.10-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/leds-ams-delta.c')
-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 da6242ad2b6..072157c3ba7 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; |