Input: sparcspkr - use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 17:28:03 +0000 (09:28 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 Dec 2015 18:02:50 +0000 (10:02 -0800)
commitd352c0e1f32e168e20d14d666a73f3712fbdc1f5
treeb04c3db0497f16134e6029556d216b9105be2935
parent0eea505058740aa45486145296ef4fefbd8cab85
Input: sparcspkr - 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/sparcspkr.c