diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-02-20 10:23:46 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-04 10:58:46 +0800 |
commit | 6673d66e5a772763f0e1b3b229474f261be37506 (patch) | |
tree | 94ace9d91ceb40649d10582439d1dba49f468ba1 /drivers/regulator/tps6586x-regulator.c | |
parent | 0a4cccaa314de37e6130a31e2092778e87c793ae (diff) | |
download | kernel_goldelico_gta04-6673d66e5a772763f0e1b3b229474f261be37506.zip kernel_goldelico_gta04-6673d66e5a772763f0e1b3b229474f261be37506.tar.gz kernel_goldelico_gta04-6673d66e5a772763f0e1b3b229474f261be37506.tar.bz2 |
regulator: tps6586x: Use dev_err rather than dev_warn for error message
tps6586x_regulator_set_slew_rate() returns -EINVAL when having slew rate
settings for other than SM0/1, thus use dev_err rather than dev_warn.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps6586x-regulator.c')
-rw-r--r-- | drivers/regulator/tps6586x-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c index 4e3e4adb..b813d21 100644 --- a/drivers/regulator/tps6586x-regulator.c +++ b/drivers/regulator/tps6586x-regulator.c @@ -245,7 +245,7 @@ static int tps6586x_regulator_set_slew_rate(struct platform_device *pdev, reg = TPS6586X_SM1SL; break; default: - dev_warn(&pdev->dev, "Only SM0/SM1 can set slew rate\n"); + dev_err(&pdev->dev, "Only SM0/SM1 can set slew rate\n"); return -EINVAL; } |