]> git.baikalelectronics.ru Git - kernel.git/commit
gpio_free might sleep, generic part
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Thu, 16 Oct 2008 05:03:12 +0000 (22:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:40 +0000 (11:21 -0700)
commit32fe7de932fb75741b2fd8f065ea8a8b244860c6
tree475b066c18f2b610d6a0ee0a6313237ce61afc4a
parentde3131e6902f51e1189ff41784a8fdd5a23faeeb
gpio_free might sleep, generic part

According to the documentation gpio_free should only be called from task
context only.  To make this more explicit add a might sleep to all
implementations.

This is the generic part which changes gpiolib and the fallback
implementation only.

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/gpiolib.c
include/linux/gpio.h