From: Simon Glass Date: Tue, 23 Jun 2015 21:39:00 +0000 (-0600) Subject: dm: power: Use debug() for errors in regulator uclass X-Git-Tag: v2015.10-rc1~150 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=59c26a9c22cecf7404fc0d1db0264c6a911141dc;p=u-boot 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 Tested-by: Przemyslaw Marczak Acked-by: Przemyslaw Marczak --- diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index a2d0b9fa8b..12e141b4ad 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;