mfd: hi6421-pmic: Use devm_mfd_add_devices() for mfd_device registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 7 Apr 2016 18:43:01 +0000 (00:13 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:55:15 +0000 (07:55 +0100)
commit9c384b0268c69a36e6b5d9c6b336fb81a63d457e
treea3badabb67e82b33085e133d698cd42d722f15f5
parent9148f2c01827fe1c8c8d589ac54b0f459759d78b
mfd: hi6421-pmic: Use devm_mfd_add_devices() for mfd_device registration

Use devm_mfd_add_devices() for MFD devices registration and get
rid of .remove callback to remove MFD child-devices. This is done
by managed device framework.

CC: Guodong Xu <guodong.xu@linaro.org>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/hi6421-pmic-core.c