Blackfin: do not error if GPIO IRQ is requested already as GPIO

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 1:59 pm

Gitweb:     http://git.kernel.org/linus/d4b890b0cd9e0ac75cbdf7011ef38ebc662930e6
Commit:     d4b890b0cd9e0ac75cbdf7011ef38ebc662930e6
Parent:     a413647bb5bbe5414cd68332ff77588db09d10be
Author:     Michael Hennerich <michael.hennerich@analog.com>
AuthorDate: Thu Apr 16 12:38:34 2009 +0000
Committer:  Mike Frysinger <vapier@gentoo.org>
CommitDate: Fri Jun 12 06:03:48 2009 -0400

    Blackfin: do not error if GPIO IRQ is requested already as GPIO
    
    Some drivers expect to be able to request both as GPIO and GPIO IRQ, so
    allow that use case.
    
    Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
    Signed-off-by: Bryan Wu <cooloney@kernel.org>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 arch/blackfin/kernel/bfin_gpio.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
index a0678da..32289b3 100644
--- a/arch/blackfin/kernel/bfin_gpio.c
+++ b/arch/blackfin/kernel/bfin_gpio.c
@@ -1021,15 +1021,6 @@ int bfin_gpio_irq_request(unsigned gpio, const char *label)
 
 	local_irq_save_hw(flags);
 
-	if (unlikely(reserved_gpio_irq_map[gpio_bank(gpio)] & gpio_bit(gpio))) {
-		if (system_state == SYSTEM_BOOTING)
-			dump_stack();
-		printk(KERN_ERR
-		       "bfin-gpio: GPIO %d is already reserved as gpio-irq !\n",
-		       gpio);
-		local_irq_restore_hw(flags);
-		return -EBUSY;
-	}
 	if (unlikely(reserved_peri_map[gpio_bank(gpio)] & gpio_bit(gpio))) {
 		if (system_state == SYSTEM_BOOTING)
 			dump_stack();
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Blackfin: do not error if GPIO IRQ is requested already as ..., Linux Kernel Mailing ..., (Fri Jun 12, 1:59 pm)