mfd: rc5t583: Use devm_mfd_add_devices and devm_request_threaded_irq
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 21 Apr 2016 12:25:55 +0000 (17:55 +0530)
committerLee Jones <lee.jones@linaro.org>
Mon, 9 May 2016 12:27:38 +0000 (13:27 +0100)
commitb36c82724fa10da7cc73693c6c2c3ab9a6c8034b
treebc6bfb2b34b1ee9d647c477ec5c01fa3a3d54b7c
parent1a5422c9e56a20898a73da5726d935d5d8072f78
mfd: rc5t583: Use devm_mfd_add_devices and devm_request_threaded_irq

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

This reduces the need of remove callback for removing MFD child
devices and unregistering IRQ.

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