]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec0aba1aead64c4f8e6b0de9d08365285ff3f724
tree4befa265bd594a507aa1d89f71a7b171f5244f89
parent957f39f9fb5f6b23e6e8e282165f84667b484f90
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: 12434e72949e ("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