]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: fixed: Let core handle GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 6 Dec 2018 12:43:38 +0000 (13:43 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 01:03:40 +0000 (01:03 +0000)
commit370cbcd6a221931f8592d76c5ba5cb0b986d6c07
tree96c0382d7958f9a881b441bc19d80a33df8ac29b
parent54c63727e2dcc24ec2a38258492d2782cca58dec
regulator: fixed: 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: 3bfbc244c15a ("regulator: fixed: Convert to use GPIO descriptor only")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-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/fixed.c