summaryrefslogtreecommitdiff
path: root/drivers/power/pmic/pmic_tps65910_dm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/pmic/pmic_tps65910_dm.c')
-rw-r--r--drivers/power/pmic/pmic_tps65910_dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/pmic/pmic_tps65910_dm.c b/drivers/power/pmic/pmic_tps65910_dm.c
index 0127ce3aa0..c65f38f107 100644
--- a/drivers/power/pmic/pmic_tps65910_dm.c
+++ b/drivers/power/pmic/pmic_tps65910_dm.c
@@ -32,7 +32,7 @@ static int pmic_tps65910_write(struct udevice *dev, uint reg, const u8 *buffer,
ret = dm_i2c_write(dev, reg, buffer, len);
if (ret)
- error("%s write error on register %02x\n", dev->name, reg);
+ pr_err("%s write error on register %02x\n", dev->name, reg);
return ret;
}
@@ -44,7 +44,7 @@ static int pmic_tps65910_read(struct udevice *dev, uint reg, u8 *buffer,
ret = dm_i2c_read(dev, reg, buffer, len);
if (ret)
- error("%s read error on register %02x\n", dev->name, reg);
+ pr_err("%s read error on register %02x\n", dev->name, reg);
return ret;
}