Skip to contentSkip to conversation

regulator: tps65219: Report regulator name if devm_regulator_register fails

PATCH In review Wadim Egorov 2 participants 2 messages Dec 14, 2022 – Dec 27, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/regulator/tps65219-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/tps65219-regulator.c +1 -1
index c484c943e467..f294d3bc5e73 100644
@@ -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;
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 4 lines · Wadim Egorov

Make the error message more useful by reporting the actual regulator name if devm_regulator_register() fails.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: tps65219: Report regulator name if devm_regulator_register fails

      commit: cfbe9dfd664c7717ef297e01b7eecccc2b5fde6f

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark