From 12276efcc85f3108174893bff8878e0dc655b066 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Wed, 3 Dec 2008 08:11:17 +0000 Subject: [PATCH] leds: Fix wrong loop direction on removal in leds-ams-delta We want to go upwards, not downwards. Signed-off-by: Sven Wegener Signed-off-by: Richard Purdie --- drivers/leds/leds-ams-delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5