leds: sunfire: Use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 16:27:01 +0000 (17:27 +0100)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 4 Jan 2016 08:57:38 +0000 (09:57 +0100)
commit6e25e641e99beb5c3f92defae0a4288beee972f1
tree100960015af5173c670b3201dd0328d5b2585a0a
parent8891161567eacfcf703b683798e17b1236096b2c
leds: sunfire: Use platform_register/unregister_drivers()

These new helpers simplify implementing multi-driver modules and
properly handle failure to register one driver by unregistering all
previously registered drivers.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-sunfire.c