Commit cfbe9dfd authored by Wadim Egorov's avatar Wadim Egorov Committed by Mark Brown

regulator: tps65219: Report regulator name if devm_regulator_register fails

Make the error message more useful by reporting the actual regulator
name if devm_regulator_register() fails.
Signed-off-by: default avatarWadim Egorov <w.egorov@phytec.de>
Link: https://lore.kernel.org/r/20221214153409.1270213-1-w.egorov@phytec.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 413ec729
......@@ -342,7 +342,7 @@ static int tps65219_regulator_probe(struct platform_device *pdev)
&config);
if (IS_ERR(rdev)) {
dev_err(tps->dev, "failed to register %s regulator\n",
pdev->name);
regulators[i].name);
return PTR_ERR(rdev);
}
rdevtbl[i] = rdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment