mfd: sta2x11: Use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 16:28:11 +0000 (17:28 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2016 06:23:38 +0000 (06:23 +0000)
commitd91d76d84c3adf7ca04ef1932431d49f51edee5e
treeecb82975c13a8d1b832fc1c3724eb2e321e03521
parent742dcd115cb523f4b518bfcda870e10a027a8024
mfd: sta2x11: 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: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sta2x11-mfd.c