Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12276efc authored by Sven Wegener's avatar Sven Wegener Committed by Richard Purdie
Browse files

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



We want to go upwards, not downwards.

Signed-off-by: default avatarSven Wegener <sven.wegener@stealer.net>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent ec149619
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;