]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: pfuze100: Don't allocate an invalid gpio
authorSean Cross <xobs@kosagi.com>
Mon, 26 May 2014 08:45:41 +0000 (16:45 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 26 May 2014 15:45:23 +0000 (16:45 +0100)
commit67eca8a1e6e2f037ab7c27ac048e72e1bf5ec505
treebff37251e8e8397296e43af7d4398d4c8ed5570e
parent0fe35a00d7e1555e4b5738641177241d79f92071
regulator: pfuze100: Don't allocate an invalid gpio

Previously, the PFUZE100 would try to allocate gpio0 io0 because
config.ena_gpio defaults to 0, which can be a valid GPIO.  To prevent this
from happening, set this parameter to -EINVAL.

Signed-off-by: Sean Cross <xobs@kosagi.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/pfuze100-regulator.c