pinctrl: at91: Use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 16:31:55 +0000 (17:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 22:50:53 +0000 (23:50 +0100)
commitbab7f5a4019b6ca410acdf8730b924b989049423
tree48fa4f9802e128141631298f0d033aa74442a679
parent9b0ee474cfdbce235f63e179d018e28673163075
pinctrl: at91: 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/pinctrl/pinctrl-at91.c