Commit 59c26a9c authored by Simon Glass's avatar Simon Glass
Browse files

dm: power: Use debug() for errors in regulator uclass

To reduce unnecessary code size in an uncommon code path, use debug()
where possible(). The driver returns an error which indicates failure.
Signed-off-by: default avatarSimon Glass <>
Tested-by: default avatarPrzemyslaw Marczak <>
Acked-by: default avatarPrzemyslaw Marczak <>
parent 083fc83a
......@@ -262,7 +262,7 @@ static int regulator_post_bind(struct udevice *dev)
if (regulator_name_is_unique(dev, uc_pdata->name))
return 0;
error("\"%s\" of dev: \"%s\", has nonunique value: \"%s\"",
debug("\"%s\" of dev: \"%s\", has nonunique value: \"%s\"",
property, dev->name, uc_pdata->name);
return -EINVAL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment