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>
This commit is contained in:
Sven Wegener 2008-12-03 08:11:17 +00:00 committed by Richard Purdie
parent ec1496193d
commit 12276efcc8

View File

@ -127,7 +127,7 @@ static int ams_delta_led_remove(struct platform_device *pdev)
{ {
int i; 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); led_classdev_unregister(&ams_delta_leds[i].cdev);
return 0; return 0;