aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/fsl_esdhc_imx.c
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@ew.tq-group.com>2024-07-05 15:27:24 +0200
committerFabio Estevam <festevam@gmail.com>2024-07-06 13:11:40 -0300
commitd0e4f56c4793a24e4ee8300320fe53d627d5a234 (patch)
tree1c25bdaed78df9089a2ef53221ad0f064823d09e /drivers/mmc/fsl_esdhc_imx.c
parent2aba1de6b5e76a697b17761dde14166a4d0b8cba (diff)
downloadu-boot-d0e4f56c4793a24e4ee8300320fe53d627d5a234.zip
u-boot-d0e4f56c4793a24e4ee8300320fe53d627d5a234.tar.gz
u-boot-d0e4f56c4793a24e4ee8300320fe53d627d5a234.tar.bz2
mmc: fsl_esdhc_imx: Fix error message
Add missing newline character and also add the return code of regulator_set_value() to the output. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Diffstat (limited to 'drivers/mmc/fsl_esdhc_imx.c')
-rw-r--r--drivers/mmc/fsl_esdhc_imx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index a9b8d7d..03de7dc 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -766,7 +766,7 @@ static int esdhc_set_voltage(struct mmc *mmc)
ret = regulator_set_value(priv->vqmmc_dev,
3300000);
if (ret) {
- printf("Setting to 3.3V error");
+ printf("Setting to 3.3V error: %d\n", ret);
return -EIO;
}
mdelay(5);
@@ -784,7 +784,7 @@ static int esdhc_set_voltage(struct mmc *mmc)
ret = regulator_set_value(priv->vqmmc_dev,
1800000);
if (ret) {
- printf("Setting to 1.8V error");
+ printf("Setting to 1.8V error: %d\n", ret);
return -EIO;
}
}