summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/ltc3589.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-12-06 13:43:43 +0100
committerMark Brown <broonie@kernel.org>2018-12-11 02:04:08 +0100
commitd03c63dbcaa1ee570d0435a7f79c7083ffb59245 (patch)
tree62ff650c161160ca4a524af4910b9aab5f1b98ab /drivers/regulator/ltc3589.c
parentgpio: Export gpiod_get_from_of_node() (diff)
downloadlinux-d03c63dbcaa1ee570d0435a7f79c7083ffb59245.tar.xz
linux-d03c63dbcaa1ee570d0435a7f79c7083ffb59245.zip
regulator: max77686: Let core handle GPIO descriptor
Use the gpiod_get_from_of_node() rather than the devm_* version so that the regulator core can handle the lifecycle of these descriptors. Fix up the errorpath so that we free this descriptor if an error occurs in the callback. Rely on the regulator core to deal with it after this point: a previous patch fixed up the regulator core to properly dispose any GPIO descriptors once you call regulator_register(). Fixes: 96392c3d8ca4 ("regulator: max77686: Pass descriptor instead of GPIO number") 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>
Diffstat (limited to 'drivers/regulator/ltc3589.c')
0 files changed, 0 insertions, 0 deletions