Title: [5995] trunk/arch/blackfin/kernel/bfin_gpio.c: From: Uwe Kleine-K?\195?\182nig <[email protected]>
Revision
5995
Author
cooloney
Date
2009-01-11 21:38:43 -0600 (Sun, 11 Jan 2009)

Log Message

From: Uwe Kleine-K?\195?\182nig <[email protected]>

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 patch changes the gpio_free implementations for the blackfin
architecture.

Signed-off-by: Uwe Kleine-K?\195?\182nig <[email protected]>
Cc: David Brownell <[email protected]>
Acked-by: Bryan Wu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/bfin_gpio.c (5994 => 5995)


--- trunk/arch/blackfin/kernel/bfin_gpio.c	2009-01-10 21:30:07 UTC (rev 5994)
+++ trunk/arch/blackfin/kernel/bfin_gpio.c	2009-01-12 03:38:43 UTC (rev 5995)
@@ -981,6 +981,8 @@
 	if (check_gpio(gpio) < 0)
 		return;
 
+	might_sleep();
+
 	local_irq_save_hw(flags);
 
 	if (unlikely(!(reserved_gpio_map[gpio_bank(gpio)] & gpio_bit(gpio)))) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to