]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: ab3100: Remove ab3100_regulators_remove function
authorAxel Lin <axel.lin@ingics.com>
Thu, 7 Mar 2019 13:53:56 +0000 (21:53 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 11 Mar 2019 16:36:18 +0000 (16:36 +0000)
commit534d7f40fc73f36ad8296b6e32a3502fb4ab9dfa
treef5c2c40e75a20421eda1b712831c86743e78de53
parent7056d325defbfec208fc49c23cef5a772a6113f4
regulator: ab3100: Remove ab3100_regulators_remove function

Current code is using devm_regulator_register() so it is not necessary
to save reg->rdev for clean up. Remove *rdev from struct ab3100_regulator,
then ab3100_regulators_remove() can be removed as well.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ab3100.c