diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2018-10-15 11:02:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-15 10:48:59 +0100 |
commit | 63239e4bf7eff394d2bcba95999d6e3eae2be6a6 (patch) | |
tree | 8ed6cf3aaf31a9a053c8b2151e9bfbcde6a5a965 /drivers/regulator/arizona-ldo1.c | |
parent | b0ce7b29bfcd090ddba476f45a75ec0a797b048a (diff) | |
download | linux-stable-63239e4bf7eff394d2bcba95999d6e3eae2be6a6.tar.gz linux-stable-63239e4bf7eff394d2bcba95999d6e3eae2be6a6.tar.bz2 linux-stable-63239e4bf7eff394d2bcba95999d6e3eae2be6a6.zip |
regulator: Fetch enable gpiods nonexclusive
Since the core regulator code is treating GPIO descriptors as
nonexclusive, i.e. it assumes that the enable GPIO line may be
shared with several regulators, let's add the flag introduced
for fixing this problem on fixed regulators to all drivers
fetching GPIO descriptors to avoid possible regressions.
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/arizona-ldo1.c')
-rw-r--r-- | drivers/regulator/arizona-ldo1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c index e976d073f28d..9a72eae4926d 100644 --- a/drivers/regulator/arizona-ldo1.c +++ b/drivers/regulator/arizona-ldo1.c @@ -260,7 +260,7 @@ static int arizona_ldo1_common_init(struct platform_device *pdev, * so clean up would happen at the wrong time */ config.ena_gpiod = gpiod_get_optional(parent_dev, "wlf,ldoena", - GPIOD_OUT_LOW); + GPIOD_OUT_LOW | GPIOD_FLAGS_BIT_NONEXCLUSIVE); if (IS_ERR(config.ena_gpiod)) return PTR_ERR(config.ena_gpiod); |