提交 12276efc 编写于 作者: S Sven Wegener 提交者: Richard Purdie

leds: Fix wrong loop direction on removal in leds-ams-delta

We want to go upwards, not downwards.
Signed-off-by: NSven Wegener <sven.wegener@stealer.net>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 ec149619
...@@ -127,7 +127,7 @@ static int ams_delta_led_remove(struct platform_device *pdev) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册