aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2008-12-03 03:11:17 -0500
committerRichard Purdie <rpurdie@linux.intel.com>2009-01-08 07:38:58 -0500
commit12276efcc85f3108174893bff8878e0dc655b066 (patch)
tree56676c39c0e6c93cbf997544c1995410a2e3fa14 /drivers
parentec1496193d53ebd8d79cdf1d6d7d4970ef342af2 (diff)
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')
-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 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)
127{ 127{
128 int i; 128 int i;
129 129
130 for (i = 0; i < ARRAY_SIZE(ams_delta_leds); i--) 130 for (i = 0; i < ARRAY_SIZE(ams_delta_leds); i++)
131 led_classdev_unregister(&ams_delta_leds[i].cdev); 131 led_classdev_unregister(&ams_delta_leds[i].cdev);
132 132
133 return 0; 133 return 0;