mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: tps65219: Report regulator name if devm_regulator_register fails
@ 2022-12-14 15:34 Wadim Egorov
  2022-12-27 11:57 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Wadim Egorov @ 2022-12-14 15:34 UTC (permalink / raw)
  To: linux-omap, linux-kernel
  Cc: linux-arm-kernel, j-neanne, broonie, lgirdwood, tony, upstream

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>
---
 drivers/regulator/tps65219-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: tps65219: Report regulator name if devm_regulator_register fails
  2022-12-14 15:34 [PATCH] regulator: tps65219: Report regulator name if devm_regulator_register fails Wadim Egorov
@ 2022-12-27 11:57 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-12-27 11:57 UTC (permalink / raw)
  To: linux-omap, linux-kernel, Wadim Egorov
  Cc: linux-arm-kernel, j-neanne, lgirdwood, tony, upstream

On Wed, 14 Dec 2022 16:34:09 +0100, Wadim Egorov wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-27 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 15:34 [PATCH] regulator: tps65219: Report regulator name if devm_regulator_register fails Wadim Egorov
2022-12-27 11:57 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®