mfd: atmel-hlcdc: Use devm_mfd_add_devices() for mfd_device registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 7 Apr 2016 18:42:59 +0000 (00:12 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:54:58 +0000 (07:54 +0100)
commitf32fb9a593704a32ddc395686fa00075d10df173
treee8e8383f5935961dd7eb90bf5788dc8ee902c06d
parent9c9983267deab5c268676d8ac15686923b6e5e19
mfd: atmel-hlcdc: 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>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/atmel-hlcdc.c