From: Markus Pargmann Date: Thu, 20 Feb 2014 16:36:04 +0000 (+0100) Subject: regulator: core: Replace direct ops->disable usage X-Git-Tag: v3.14-rc6~31^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66fda75f47dc;p=pandora-kernel.git 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: # 3.10+ Signed-off-by: Markus Pargmann Signed-off-by: Mark Brown --- Reading git-diff-tree failed