mfd: menf21bmc: Use devm_mfd_add_devices() for mfd_device registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 7 Apr 2016 18:43:03 +0000 (00:13 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:55:30 +0000 (07:55 +0100)
commit7990ad17a9debc2c91ffc1413d01450c982fcb8d
tree306180a3b9e82da5e53fdd45d6f438ada99eeae5
parentc5f244549425c83835759f2d338967d0e798fda3
mfd: menf21bmc: 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.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Andreas Werner <andreas.werner@men.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/menf21bmc.c