mfd: sec: Use devm_mfd_add_devices and devm_regmap_add_irq_chip
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 21 Apr 2016 12:25:56 +0000 (17:55 +0530)
committerLee Jones <lee.jones@linaro.org>
Mon, 9 May 2016 12:27:38 +0000 (13:27 +0100)
commit3dc6f4aaafbe9e745fd1183b7a7a91aeeae99fcd
treea5d098ba2814d47d522bd2ce419fac0420357466
parentb36c82724fa10da7cc73693c6c2c3ab9a6c8034b
mfd: sec: 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>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sec-core.c
drivers/mfd/sec-irq.c
This page took 0.024843 seconds and 5 git commands to generate.