summaryrefslogtreecommitdiff
path: root/drivers/power/regulator/regulator-uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:43:58 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:35 -0700
commit7d5779993dbc487695fbfe88716fd70618a5db99 (patch)
tree593db3bb18fc6a5ac3f521f020b674bcc87618ba /drivers/power/regulator/regulator-uclass.c
parent1b30d61d786421a5d02725a9945552cc9c09914b (diff)
downloadu-boot-imx-7d5779993dbc487695fbfe88716fd70618a5db99.zip
u-boot-imx-7d5779993dbc487695fbfe88716fd70618a5db99.tar.gz
u-boot-imx-7d5779993dbc487695fbfe88716fd70618a5db99.tar.bz2
dm: power: Tidy up debugging output and return values
The currect PMIC debugging is a little confusing. Adjust it so that it is clear whether the operation succeeded or failed. Also, avoid creating a new error return value when a perfectly good one is already available. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/regulator/regulator-uclass.c')
-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 4241a4c..fec2886 100644
--- a/drivers/power/regulator/regulator-uclass.c
+++ b/drivers/power/regulator/regulator-uclass.c
@@ -178,7 +178,7 @@ static void regulator_show(struct udevice *dev, int ret)
printf("; set %d uA", uc_pdata->min_uA);
printf("; enabling");
if (ret)
- printf(" (ret: %d)\n", ret);
+ printf(" (ret: %d)", ret);
printf("\n");
}