leds: pca955x: use devm_led_classdev_register
authorCédric Le Goater <clg@kaod.org>
Tue, 8 Aug 2017 13:42:38 +0000 (15:42 +0200)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Mon, 14 Aug 2017 20:22:25 +0000 (22:22 +0200)
commit91940bb4ca7b7f1b5426cc14bdbd0c7f8347683f
tree2db2abb85dc236dcb2e57e4eac53820512fe693e
parented1f4b9676a8eb9c38cf44cdc06300604bfbb43e
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>
drivers/leds/leds-pca955x.c