mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
mfd: bd9571mwv: Use devm_mfd_add_devices()
[ Upstream commitc58ad0f2b0
] To remove mfd devices when unload this driver, should use devm_mfd_add_devices() instead. Fixes:d3ea212720
("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>
This commit is contained in:
parent
12e30ce2df
commit
b60659c70e
1 changed files with 3 additions and 3 deletions
|
@ -183,9 +183,9 @@ static int bd9571mwv_probe(struct i2c_client *client,
|
|||
return ret;
|
||||
}
|
||||
|
||||
ret = mfd_add_devices(bd->dev, PLATFORM_DEVID_AUTO, bd9571mwv_cells,
|
||||
ARRAY_SIZE(bd9571mwv_cells), NULL, 0,
|
||||
regmap_irq_get_domain(bd->irq_data));
|
||||
ret = devm_mfd_add_devices(bd->dev, PLATFORM_DEVID_AUTO,
|
||||
bd9571mwv_cells, ARRAY_SIZE(bd9571mwv_cells),
|
||||
NULL, 0, regmap_irq_get_domain(bd->irq_data));
|
||||
if (ret) {
|
||||
regmap_del_irq_chip(bd->irq, bd->irq_data);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue