regulator: Fix display of null constraints for regulators
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 11 Feb 2010 19:20:48 +0000 (19:20 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 12 Feb 2010 11:19:57 +0000 (11:19 +0000)
commit973e9a2795b3b41d8408a0bb6f87b783c5efc88a
tree389bb05780ae75a98bebdb6ee4dd6e866ae6d381
parent676ad585531e965416fd958747894541dabcec96
regulator: Fix display of null constraints for regulators

If the regulator constraints are empty and there is no voltage
reported then nothing will be added to the text displayed for the
constraints, leading to random stack data being printed. This is
unlikely to happen for practical regulators since most will at
least report a voltage but should still be fixed.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c