commit | 91940bb4ca7b7f1b5426cc14bdbd0c7f8347683f | [log] [tgz] |
---|---|---|
author | Cédric Le Goater <clg@kaod.org> | Tue Aug 08 15:42:38 2017 +0200 |
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | Mon Aug 14 22:22:25 2017 +0200 |
tree | 2db2abb85dc236dcb2e57e4eac53820512fe693e | |
parent | ed1f4b9676a8eb9c38cf44cdc06300604bfbb43e [diff] |
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: Cédric Le Goater <clg@kaod.org> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>