gpio: mpc5200: Use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 16:19:55 +0000 (17:19 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 18:28:05 +0000 (19:28 +0100)
commit20d7090ffd4a30c66f3e2eb6741bb1e5baa56e8b
treea1e8dd34bf809bb8a329908a6edd7fd61f108c1d
parent12b61c9d7e0750f2569392999fcfa85778185b06
gpio: mpc5200: 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: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mpc5200.c