mfd: as3711: Use devm_mfd_add_devices() for mfd_device registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 7 Apr 2016 18:42:58 +0000 (00:12 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:54:50 +0000 (07:54 +0100)
commit9c9983267deab5c268676d8ac15686923b6e5e19
tree1760f55fa2b65e054a4ebf6dc6bb29b980ab1f1e
parentf9932c6e66c17ca3d84a7c6424c844bea8003ffb
mfd: as3711: 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: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/as3711.c