regulator: gpio: Simplify probe path
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 29 Jan 2019 10:31:55 +0000 (11:31 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 16:01:18 +0000 (16:01 +0000)
commitd162d041033830b736921b5d3deffcde860cfc26
tree2b787c3fd861845dc53b494f106ab29e8af4d993
parent01dc79cd6fe7d25b0eba84009634f5435cbdb4e6
regulator: gpio: Simplify probe path

Use devm_* managed device resources and create a local
struct device *dev variable to simplify the code inside
probe().

Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/gpio-regulator.c