Skip to content
Snippets Groups Projects
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 <sjg@chromium.org>
Tested-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Acked-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
parent 083fc83a
No related branches found
No related tags found
No related merge requests found
...@@ -262,7 +262,7 @@ static int regulator_post_bind(struct udevice *dev) ...@@ -262,7 +262,7 @@ static int regulator_post_bind(struct udevice *dev)
if (regulator_name_is_unique(dev, uc_pdata->name)) if (regulator_name_is_unique(dev, uc_pdata->name))
return 0; 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); property, dev->name, uc_pdata->name);
return -EINVAL; return -EINVAL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment