mfd: act8945a: Use devm_mfd_add_devices() for mfd_device registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 7 Apr 2016 18:42:57 +0000 (00:12 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:54:40 +0000 (07:54 +0100)
commitf9932c6e66c17ca3d84a7c6424c844bea8003ffb
treecbc87b145f731e7bd8b5a351f517757049b505cb
parent3698283b101388cb9d992ae4d34329f005aa35e8
mfd: act8945a: 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: Wenyou Yang <wenyou.yang@atmel.com>
CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/act8945a.c