]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
rockchip: rk3288: Add error debugging to veyron_init()
authorSimon Glass <sjg@chromium.org>
Wed, 31 May 2017 23:57:27 +0000 (17:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 19:39:34 +0000 (13:39 -0600)
Add a debug() statement so we can see when something goes wrong with the
regulator.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3288-board.c

index 9894a25e080f34daa5b574982a6dc6909068ca53..18fd0dcd207dad5cba2bf829806f78c24a0c7e8b 100644 (file)
@@ -86,8 +86,10 @@ static int veyron_init(void)
        int ret;
 
        ret = regulator_get_by_platname("vdd_arm", &dev);
-       if (ret)
+       if (ret) {
+               debug("Cannot set regulator name\n");
                return ret;
+       }
 
        /* Slowly raise to max CPU voltage to prevent overshoot */
        ret = regulator_set_value(dev, 1200000);