]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/regulator/lp8788-ldo.c
regulator: lp8788-ldo: Let core handle GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 6 Dec 2018 12:43:40 +0000 (13:43 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 01:03:54 +0000 (01:03 +0000)
commit2bb8ede0b14187c19b5eedc62cf0b18b3bf00d3b
tree4befa265bd594a507aa1d89f71a7b171f5244f89
parente8a33aa0e3bc22134bf2bf3ca6339d6a1b7ffe16
regulator: lp8788-ldo: Let core handle GPIO descriptor

Use the gpiod_get() rather than the devm_* version so that the
regulator core can handle the lifecycle of these descriptors.

Fixes: 2468f0d51548 ("regulator: lp8788-ldo: Pass descriptor instead of GPIO number")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp8788-ldo.c