summaryrefslogtreecommitdiff
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-10 03:42:56 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-10 03:42:56 (GMT)
commitbdb7e45507893f4c509c539d442ed4962ac6fa0f (patch)
tree86c76eba665903dd3eaf97154b84516bb80e80e6 /drivers/regulator/core.c
parent1f9cc5f7716d664bfe32289ca61327be01a0a8e3 (diff)
parentfff15bef48e846d2670c86c95f8dbc3f84bbe866 (diff)
downloadlinux-fsl-qoriq-bdb7e45507893f4c509c539d442ed4962ac6fa0f.tar.xz
Merge remote-tracking branch 'regulator/topic/log' into regulator-next
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r--drivers/regulator/core.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index d5f84c1..35c149b 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -199,8 +199,11 @@ static int regulator_check_consumers(struct regulator_dev *rdev,
*min_uV = regulator->min_uV;
}
- if (*min_uV > *max_uV)
+ if (*min_uV > *max_uV) {
+ dev_err(regulator->dev, "Restricting voltage, %u-%uuV\n",
+ regulator->min_uV, regulator->max_uV);
return -EINVAL;
+ }
return 0;
}
@@ -880,7 +883,9 @@ static int machine_constraints_voltage(struct regulator_dev *rdev,
/* final: [min_uV..max_uV] valid iff constraints valid */
if (max_uV < min_uV) {
- rdev_err(rdev, "unsupportable voltage constraints\n");
+ rdev_err(rdev,
+ "unsupportable voltage constraints %u-%uuV\n",
+ min_uV, max_uV);
return -EINVAL;
}