Hi
@@ -341,51 +362,55 @@ static int mc13783_led_probe(struct platform_device *pdev) err_register: for (i = i - 1; i >= 0; i--) { - led_classdev_unregister(&led[i].cdev); cancel_work_sync(&led[i].work); + led_classdev_unregister(&led[i].cdev); } return ret; } +static int mc13xxx_led_remove(struct platform_device *pdev)
(..)
for (i = 0; i < pdata->num_leds; i++) { - led_classdev_unregister(&led[i].cdev); cancel_work_sync(&led[i].work); + led_classdev_unregister(&led[i].cdev); }
Why changing the order ? Thanks, Philippe -- To unsubscribe from this list: send the line "unsubscribe linux-leds" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html