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: NMarek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录