Add a debug() statement so we can see when something goes wrong with the
regulator.
Signed-off-by: Simon Glass <sjg@chromium.org>
int ret;
ret = regulator_get_by_platname("vdd_arm", &dev);
int ret;
ret = regulator_get_by_platname("vdd_arm", &dev);
+ if (ret) {
+ debug("Cannot set regulator name\n");
/* Slowly raise to max CPU voltage to prevent overshoot */
ret = regulator_set_value(dev, 1200000);
/* Slowly raise to max CPU voltage to prevent overshoot */
ret = regulator_set_value(dev, 1200000);