]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: 88pm800: Update driver to use devm_regulator_register fn
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Thu, 16 Jul 2015 18:16:55 +0000 (23:46 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 20:32:58 +0000 (21:32 +0100)
commita07d94a54b93d94d8cb990ffe018c595cfb94662
tree41854d19d6b839c7c200b3e8c807b4f3754dbc17
parent4d45c70bfb3ffe55fad1d1681feaec2094f4da3b
regulator: 88pm800: Update driver to use devm_regulator_register fn

This patch replaces standard regulator_register with
devm_regulator_register() fn, as using devm_regulator_register() fn
simplifies the driver return/exit path.

As part of this update, patch also cleanups up all unnecessary changes
which is result of this patch -

  - Remove _remove() fn, as devm_ variant takes care of it.
  - Remove pm800_regulators.regulators[] field, as it was only
    needed during cleanup, so we no longer need this.
    This also saved some amount of memory.

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/88pm800.c