]> git.baikalelectronics.ru Git - kernel.git/commit
base/devres.c: quiet sparse noise about context imbalance
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 12 Aug 2011 21:58:31 +0000 (14:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Aug 2011 21:12:24 +0000 (14:12 -0700)
commit2066f5602bf1fb22509bf5a01f57f4af2e6c74e3
treea77653b6c617d73a26efabd98fb0551201a3a94f
parent36cd2e133ba5ed1395cbd56f6743e103b25cf883
base/devres.c: quiet sparse noise about context imbalance

devres_release_all and devres_release_group both aquire the lock
&dev->devres_lock but the release of that lock is done in release_nodes.
This results in sparse noise about context imbalance.

Add a lock annotation to release_nodes to quiet this noise.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/devres.c