X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7ee68b0bf39237ac6fa0f3137be865c4048e2e64..78859ab57d15257d590d0f64873a420f08afa7fa:/target/linux/ar71xx/files/drivers/leds/leds-rb750.c diff --git a/target/linux/ar71xx/files/drivers/leds/leds-rb750.c b/target/linux/ar71xx/files/drivers/leds/leds-rb750.c index 2e6064763..40469444f 100644 --- a/target/linux/ar71xx/files/drivers/leds/leds-rb750.c +++ b/target/linux/ar71xx/files/drivers/leds/leds-rb750.c @@ -9,11 +9,13 @@ * */ #include +#include #include #include #include +#include -#include +#include #define DRV_NAME "leds-rb750" @@ -89,7 +91,7 @@ static int __devinit rb750_led_probe(struct platform_device *pdev) platform_set_drvdata(pdev, drvdata); return 0; - err: +err: for (i = i - 1; i >= 0; i--) led_classdev_unregister(&drvdata->led_devs[i].cdev);