On 04/21/2016 02:25 PM, Laxman Dewangan wrote: > 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 <[email protected]> > CC: Sangbeom Kim <[email protected]> > CC: Krzysztof Kozlowski <[email protected]> > CC: [email protected] > --- > drivers/mfd/sec-core.c | 20 +++----------------- > drivers/mfd/sec-irq.c | 14 +++++--------- > 2 files changed, 8 insertions(+), 26 deletions(-)
Tested-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Best regards, Krzysztof

