mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 18:00:59 +07:00
regulator: s2mps11: Use devm_regulator_register
Commit e398b51a ("regulator: s2mps11: Convert to devm_regulator_register()") intended to do this conversion. However the actual conversion to devm_* got missed out. Fix this. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
b15f5f7603
commit
d55cd794d6
@ -448,7 +448,8 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
|
||||
config.of_node = rdata[i].of_node;
|
||||
}
|
||||
|
||||
s2mps11->rdev[i] = regulator_register(®ulators[i], &config);
|
||||
s2mps11->rdev[i] = devm_regulator_register(&pdev->dev,
|
||||
®ulators[i], &config);
|
||||
if (IS_ERR(s2mps11->rdev[i])) {
|
||||
ret = PTR_ERR(s2mps11->rdev[i]);
|
||||
dev_err(&pdev->dev, "regulator init failed for %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user