Skip to content

Commit 57e43b6

Browse files
shimodaygregkh
authored andcommitted
mfd: bd9571mwv: Use devm_mfd_add_devices()
[ Upstream commit c58ad0f ] To remove mfd devices when unload this driver, should use devm_mfd_add_devices() instead. Fixes: d3ea212 ("mfd: Add ROHM BD9571MWV-M MFD PMIC driver") Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 4ddac9d commit 57e43b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/mfd/bd9571mwv.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ static int bd9571mwv_probe(struct i2c_client *client,
185185
return ret;
186186
}
187187

188-
ret = mfd_add_devices(bd->dev, PLATFORM_DEVID_AUTO, bd9571mwv_cells,
189-
ARRAY_SIZE(bd9571mwv_cells), NULL, 0,
190-
regmap_irq_get_domain(bd->irq_data));
188+
ret = devm_mfd_add_devices(bd->dev, PLATFORM_DEVID_AUTO,
189+
bd9571mwv_cells, ARRAY_SIZE(bd9571mwv_cells),
190+
NULL, 0, regmap_irq_get_domain(bd->irq_data));
191191
if (ret) {
192192
regmap_del_irq_chip(bd->irq, bd->irq_data);
193193
return ret;

0 commit comments

Comments
 (0)