From 58fcfc5215d1efcff8012e0728b2e88a0de930ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 15 Sep 2008 22:02:43 +0200 Subject: [PATCH] --- yaml --- r: 110387 b: refs/heads/master c: fbdbf709938d155c719c76b9894d28342632c797 h: refs/heads/master i: 110385: e621804161454ca7984bc3bb0664377d5c8c4e81 110383: 40dec0a266c875750525002fc76596c31c5b69e0 v: v3 --- [refs] | 2 +- trunk/include/asm-x86/mach-rdc321x/gpio.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b1549a25e46e..6b254a08bff5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 90f7d25c6b672137344f447a30a9159945ffea72 +refs/heads/master: fbdbf709938d155c719c76b9894d28342632c797 diff --git a/trunk/include/asm-x86/mach-rdc321x/gpio.h b/trunk/include/asm-x86/mach-rdc321x/gpio.h index acce0b7d397b..3639ece6485a 100644 --- a/trunk/include/asm-x86/mach-rdc321x/gpio.h +++ b/trunk/include/asm-x86/mach-rdc321x/gpio.h @@ -1,6 +1,8 @@ #ifndef _RDC321X_GPIO_H #define _RDC321X_GPIO_H +#include + extern int rdc_gpio_get_value(unsigned gpio); extern void rdc_gpio_set_value(unsigned gpio, int value); extern int rdc_gpio_direction_input(unsigned gpio); @@ -18,6 +20,7 @@ static inline int gpio_request(unsigned gpio, const char *label) static inline void gpio_free(unsigned gpio) { + might_sleep(); rdc_gpio_free(gpio); }