summaryrefslogtreecommitdiffstats
path: root/drivers/power/pmic
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2020-04-17 09:27:10 -0300
committerStefano Babic <sbabic@denx.de>2020-04-18 12:59:37 +0200
commit417ea635dce2837e2273fa8684ee9750e67eb0ad (patch)
tree013929ae2681af2b106db35683c634fb67bedfed /drivers/power/pmic
parent4c13a4db60b4d570ea8cc496d02e5ea31adf27f0 (diff)
downloadu-boot-417ea635dce2837e2273fa8684ee9750e67eb0ad.tar.gz
u-boot-417ea635dce2837e2273fa8684ee9750e67eb0ad.tar.xz
u-boot-417ea635dce2837e2273fa8684ee9750e67eb0ad.zip
pmic: pfuze100: Change error message level to debug
In some cases U-Boot runs the same binary on different board versions. In wandboard, for example, there are versions with the PFUZE100 PMIC populated and others without it. When the PMIC is not present, it is not really useful to get PMIC error, so change the error message level to debug instead. Signed-off-by: Fabio Estevam <festevam@gmail.com> Tested-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/power/pmic')
-rw-r--r--drivers/power/pmic/pfuze100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/pmic/pfuze100.c b/drivers/power/pmic/pfuze100.c
index 6cf5f35f0f..db630f3ad0 100644
--- a/drivers/power/pmic/pfuze100.c
+++ b/drivers/power/pmic/pfuze100.c
@@ -41,7 +41,7 @@ static int pfuze100_write(struct udevice *dev, uint reg, const uint8_t *buff,
static int pfuze100_read(struct udevice *dev, uint reg, uint8_t *buff, int len)
{
if (dm_i2c_read(dev, reg, buff, len)) {
- pr_err("read error from device: %p register: %#x!\n", dev, reg);
+ debug("read error from device: %p register: %#x!\n", dev, reg);
return -EIO;
}