git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6
[pandora-kernel.git]
/
include
/
linux
/
gpio.h
diff --git
a/include/linux/gpio.h
b/include/linux/gpio.h
index
730a20b
..
e10c49a
100644
(file)
--- a/
include/linux/gpio.h
+++ b/
include/linux/gpio.h
@@
-8,6
+8,7
@@
#else
+#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
@@
-32,6
+33,8
@@
static inline int gpio_request(unsigned gpio, const char *label)
static inline void gpio_free(unsigned gpio)
{
+ might_sleep();
+
/* GPIO can never have been requested */
WARN_ON(1);
}