mfd: tps65910: 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: NLaxman Dewangan <ldewangan@nvidia.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
Showing
想要评论请 注册 或 登录