leds: pca955x: use devm_led_classdev_register
This lets us remove the loop doing the cleanup in case of failure and also the remove handler of the i2c_driver. Signed-off-by: NCédric Le Goater <clg@kaod.org> Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
Showing
想要评论请 注册 或 登录