Re: [PATCH] leds: leds-hp6xx: Use devm_led_classdev_register

2015-09-07 Thread Jacek Anaszewski
On 09/05/2015 09:53 PM, Muhammad Falak R Wani wrote: Use resource-managed function devm_led_classdev_register instead of led_classdev_register to simplify error path. An unnecessary check of ret is replaced with a direct return Also, remove redundant hp6xxled_remove. Signed-off-by: Muhammad Fala

[PATCH] leds: leds-hp6xx: Use devm_led_classdev_register

2015-09-05 Thread Muhammad Falak R Wani
Use resource-managed function devm_led_classdev_register instead of led_classdev_register to simplify error path. An unnecessary check of ret is replaced with a direct return Also, remove redundant hp6xxled_remove. Signed-off-by: Muhammad Falak R Wani --- drivers/leds/leds-hp6xx.c | 17 ++---