]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Replace direct ops->disable usage
authorMarkus Pargmann <mpa@pengutronix.de>
Thu, 20 Feb 2014 16:36:04 +0000 (17:36 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 25 Feb 2014 01:31:45 +0000 (10:31 +0900)
commit5258b1940619b635c31a04733ad1a47b36031e17
tree58fc2ec4e98cd7e80d30637d53844a86cf703073
parent92b684a950da2dcd6cb90f92f702b3aa8af6f9d8
regulator: core: Replace direct ops->disable usage

There are many places where ops->disable is called directly. Instead we
should use _regulator_do_disable() which also handles gpio regulators.

To be able to use the wrapper function from _regulator_force_disable(),
I moved the _notifier_call_chain() call from _regulator_do_disable() to
_regulator_disable(). This way, _regulator_force_disable() can use
different flags for _notifier_call_chain() without calling it twice.

Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/core.c