[PATCH 4/5 v8] regulator: gpio: Simplify probe path

2019-01-07 Thread Linus Walleij
Use devm_* managed device resources and create a local struct device *dev variable to simplify the code inside probe(). Signed-off-by: Linus Walleij --- ChangeLog v7->v8: - Rebase on v5.0-rc1. ChangeLog v6->v7: - Resend with the rest. ChangeLog v3->v6: - Rebase on top of the other changes. - Chan

[PATCH 4/5 v8] regulator: gpio: Simplify probe path

2018-12-11 Thread Linus Walleij
Use devm_* managed device resources and create a local struct device *dev variable to simplify the code inside probe(). Signed-off-by: Linus Walleij --- ChangeLog v7->v8: - Rebase on recent fixes on the for-4.21 branch. ChangeLog v6->v7: - Resend with the rest. ChangeLog v3->v6: - Rebase on top o