]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: tps65218: Remove unnecessary regulator_unregister call
authorAxel Lin <axel.lin@ingics.com>
Wed, 19 Feb 2014 08:34:11 +0000 (16:34 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 19 Feb 2014 12:18:54 +0000 (21:18 +0900)
commitde677011fe9363b700f7f6a8903f4090cfcf88b0
tree533183d9c3ff073a8cb7a64b2fac431b6b6bf0c2
parent5a8e49160a63d08d47fe16ccb36de2fc44dacdd7
regulator: tps65218: Remove unnecessary regulator_unregister call

Current code uses devm_regulator_register() so the we don't need to explicitly
call regulator_unregister() in .remove.
And then we don't need to save rdev pointer to tps->rdev[id].

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/tps65218-regulator.c