]> git.karo-electronics.de Git - linux-beck.git/commit
gpiolib: decouple might_sleep_if() from DEBUG
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 11 Aug 2010 01:02:24 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:08 +0000 (08:59 -0700)
commit9c4ba9466117b16a2b85034bb87db528aaeb3f07
tree24ca585f76deef20b8c541ec2b62a1c72776a931
parent49946f68149a723659eca253376ac555d4b73280
gpiolib: decouple might_sleep_if() from DEBUG

Be more consistent about runtime programming interface abuse warnings,
which can reduce some confusion and trigger bugfixes.  Based on an
observation and patch from Jani Nikula.

Also update doc to highlight some sleeping-call issues and to match some
recent changes.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Jani Nikula <ext-jani.1.nikula@nokia.com>
Cc: "Ryan Mallon" <ryan@bluewatersys.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/gpio.txt
drivers/gpio/gpiolib.c