]> git.sur5r.net Git - u-boot/commitdiff
dm: power: Use debug() for errors in regulator uclass
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:39:00 +0000 (15:39 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:26 +0000 (17:39 -0600)
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>
drivers/power/regulator/regulator-uclass.c

index a2d0b9fa8bd2cee923d66baa05fca3065328355d..12e141b4adedbda7b2d44b1f3ddfd913eaa9ffb1 100644 (file)
@@ -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;