diff options
author | Felix Brack <fb@ltec.ch> | 2017-12-18 15:38:28 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-01 09:04:19 -0500 |
commit | 46caea7f96f0cd81cbc92fefc3d279e870442cb0 (patch) | |
tree | 80fc6dcc62a20e2508f31cb05579faeda4ac0ae0 /drivers/power/regulator | |
parent | 48fa31206dba839eaa2df5dcca09fc0c8e3be1ff (diff) | |
download | u-boot-46caea7f96f0cd81cbc92fefc3d279e870442cb0.tar.gz u-boot-46caea7f96f0cd81cbc92fefc3d279e870442cb0.tar.bz2 u-boot-46caea7f96f0cd81cbc92fefc3d279e870442cb0.zip |
power: tps65910: replace error() by pr_err()
The patch replaces the former error() by the new pr_err().
This makes the TPS65910 driver conform to Masahiro's patch
'treewide:replace with error() with pr_err()' introduced
October 2017.
Signed-off-by: Felix Brack <fb@ltec.ch>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/regulator')
-rw-r--r-- | drivers/power/regulator/tps65910_regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/regulator/tps65910_regulator.c b/drivers/power/regulator/tps65910_regulator.c index 5e2ec8f363..ad952e537f 100644 --- a/drivers/power/regulator/tps65910_regulator.c +++ b/drivers/power/regulator/tps65910_regulator.c @@ -340,11 +340,11 @@ static int buck_set_vdd1_vdd2_value(struct udevice *dev, int uV) /* check setpoint is within limits */ if (uV < uc_pdata->min_uV) { - error("voltage %duV for %s too low\n", uV, dev->name); + pr_err("voltage %duV for %s too low\n", uV, dev->name); return -EINVAL; } if (uV > uc_pdata->max_uV) { - error("voltage %duV for %s too high\n", uV, dev->name); + pr_err("voltage %duV for %s too high\n", uV, dev->name); return -EINVAL; } |