mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 19:31:09 +07:00
regulator: palmas: Drop regulator_unregister while using devm_regulator_register
Commmit af40a94aba "regulator: palmas: Use devm_regulator_register" missed removing a regulator_unregister() call if palmas_extreg_init falis. Fix it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
cab87f062d
commit
cb2e45e316
@ -1037,10 +1037,8 @@ static int palmas_regulators_probe(struct platform_device *pdev)
|
|||||||
else
|
else
|
||||||
ret = palmas_extreg_init(palmas,
|
ret = palmas_extreg_init(palmas,
|
||||||
id, reg_init);
|
id, reg_init);
|
||||||
if (ret) {
|
if (ret)
|
||||||
regulator_unregister(pmic->rdev[id]);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user