summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2026-03-05 18:46:23 +0000
committerMark Brown <broonie@kernel.org>2026-03-05 19:03:51 +0000
commitaa3d0c93a333182e887426366a4f3e5f06ee0d83 (patch)
tree49c11a3ebfe43e279f6ffe88183221530e40c7e3
parent4d4becffe425fd8a4ab6bea5a8cb6d23428bd657 (diff)
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 <ben.dooks@codethink.co.uk> Link: https://patch.msgid.link/20260305184623.2603269-1-ben.dooks@codethink.co.uk Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/max20411-regulator.c2
1 files changed, 1 insertions, 1 deletions
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);
}