regulator: gpio: Convert to devm_regulator_register
authorAxel Lin <axel.lin@ingics.com>
Fri, 8 Mar 2019 06:15:28 +0000 (14:15 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 13 Mar 2019 15:09:29 +0000 (15:09 +0000)
commit7cdc2ee7bf10705f737c22dcd4b002b87849badb
treec8dfdc531addab006f6751a86ca8da3d2e94b58d
parent178d08ea81b1538ea0b2c432a3ddda53b7fec296
regulator: gpio: Convert to devm_regulator_register

Use devm_regulator_register to simplify the code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/gpio-regulator.c