From: Krzysztof Kozlowski Date: Mon, 29 Jun 2015 00:04:43 +0000 (+0900) Subject: regulator: Add lockdep asserts to help detecting locking misuse X-Git-Tag: omap-for-v4.3/fixes-merge-window~34^2~4^6~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70cfef26267474f94ff4a988fb45ff78442b1cf4;p=pandora-kernel.git regulator: Add lockdep asserts to help detecting locking misuse Add lockdep_assert_held_once() to functions explicitly mentioning that rdev or regulator_list mutex must be held. Using WARN_ONCE shouldn't pollute the dmesg to much. The patch (if CONFIG_LOCKDEP enabled) will show warnings in certain regulators calling regulator_notifier_call_chain() without rdev->mutex held. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- Reading git-diff-tree failed