From aa3d0c93a333182e887426366a4f3e5f06ee0d83 Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Thu, 5 Mar 2026 18:46:23 +0000 Subject: [PATCH] regulator: max20411: show failure on register It is easy to use %pe to print a error-pointer so add this to the dev_err() if the devm_regulator_register() fails. Signed-off-by: Ben Dooks Link: https://patch.msgid.link/20260305184623.2603269-1-ben.dooks@codethink.co.uk Signed-off-by: Mark Brown --- drivers/regulator/max20411-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max20411-regulator.c b/drivers/regulator/max20411-regulator.c index 02d7009ea0e6..6c0ebb970e90 100644 --- a/drivers/regulator/max20411-regulator.c +++ b/drivers/regulator/max20411-regulator.c @@ -133,7 +133,7 @@ static int max20411_probe(struct i2c_client *client) max20411->rdev = devm_regulator_register(max20411->dev, &max20411->desc, &cfg); if (IS_ERR(max20411->rdev)) - dev_err(max20411->dev, "Failed to register regulator\n"); + dev_err(max20411->dev, "Failed to register regulator: %pe\n", max20411->rdev); return PTR_ERR_OR_ZERO(max20411->rdev); }