diff options
author | Wadim Egorov <w.egorov@phytec.de> | 2022-12-14 16:34:09 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-25 23:33:42 +0000 |
commit | cfbe9dfd664c7717ef297e01b7eecccc2b5fde6f (patch) | |
tree | 6a0895cbbd1c8f7873c007cb0584e10b1e5b9cfd /drivers/regulator/tps65219-regulator.c | |
parent | 413ec72963fc297f419a3d5f931bb43921969749 (diff) | |
download | linux-stable-cfbe9dfd664c7717ef297e01b7eecccc2b5fde6f.tar.gz linux-stable-cfbe9dfd664c7717ef297e01b7eecccc2b5fde6f.tar.bz2 linux-stable-cfbe9dfd664c7717ef297e01b7eecccc2b5fde6f.zip |
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: Wadim Egorov <w.egorov@phytec.de>
Link: https://lore.kernel.org/r/20221214153409.1270213-1-w.egorov@phytec.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/tps65219-regulator.c')
-rw-r--r-- | drivers/regulator/tps65219-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps65219-regulator.c b/drivers/regulator/tps65219-regulator.c index c484c943e467..f294d3bc5e73 100644 --- a/drivers/regulator/tps65219-regulator.c +++ b/drivers/regulator/tps65219-regulator.c @@ -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; |