diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2015-10-15 11:37:12 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-16 16:48:39 +0200 |
commit | ce938001c08c6580a8da38dc226fa605512afab6 (patch) | |
tree | e20a0c631e76a048767463dbba290b629235d4aa /mm/cma.c | |
parent | regulator: arizona: add support for WM8998 and WM1814 (diff) | |
download | linux-ce938001c08c6580a8da38dc226fa605512afab6.tar.xz linux-ce938001c08c6580a8da38dc226fa605512afab6.zip |
regulator: arizona-ldo1: Fix handling of GPIO 0
The LDO1 driver is using the arizona_of_get_named_gpio helper function
which will return 0 if an error was encountered whilst parsing the GPIO,
as under the pdata scheme 0 was not being treated as a valid GPIO.
However, since the regulator framework was expanded to allow the use of
GPIO 0 this causes us to attempt to register GPIO 0 when we encountered
an error parsing the device tree.
This patch uses of_get_named_gpio directly and sets the
ena_gpio_initialized flag based on the return value.
Fixes: 1de3821ace82 ("regulator: Set ena_gpio_initialized in regulator drivers")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm/cma.c')
0 files changed, 0 insertions, 0 deletions