mfd: as3722: Use devm_mfd_add_devices and devm_regmap_add_irq_chip
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 21 Apr 2016 12:25:52 +0000 (17:55 +0530)
committerLee Jones <lee.jones@linaro.org>
Mon, 9 May 2016 07:24:46 +0000 (08:24 +0100)
commit0bbfb87c567d982fd698b41e9fb68478727460f9
tree75922390373d03136b4cdc224092fbdb129fcaf1
parentae9810e275d5847ded7e1cbcf231c3fcf95b6e52
mfd: as3722: Use devm_mfd_add_devices and devm_regmap_add_irq_chip

Use devm_mfd_add_devices() for adding MFD child devices and
devm_regmap_add_irq_chip() for IRQ chip registration.

This reduces the error code path and .remove callback for removing
MFD child devices and deleting IRQ chip data.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/as3722.c