summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-23 15:39:00 -0600
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:26 -0600
commit59c26a9c22cecf7404fc0d1db0264c6a911141dc (patch)
treeabe91f30a49af50178bc8fd679b160ccb769f971 /drivers/power
parent083fc83a4e1187a3f42575c8e3df089d3be622ad (diff)
downloadu-boot-imx-59c26a9c22cecf7404fc0d1db0264c6a911141dc.zip
u-boot-imx-59c26a9c22cecf7404fc0d1db0264c6a911141dc.tar.gz
u-boot-imx-59c26a9c22cecf7404fc0d1db0264c6a911141dc.tar.bz2
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: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/regulator/regulator-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c
index a2d0b9f..12e141b 100644
--- a/drivers/power/regulator/regulator-uclass.c
+++ b/drivers/power/regulator/regulator-uclass.c
@@ -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;