From: Michael Hennerich Date: Wed, 4 Feb 2009 08:49:45 +0000 (+0800) Subject: Blackfin arch: Fix Bug - request lines with peripheral_request_list, but don't get... X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5e7bb132bbed2088b8b103e410d143b341dcb837;p=linux-2.6-omap-h63xx.git Blackfin arch: Fix Bug - request lines with peripheral_request_list, but don't get freed with peripheral_free_list Remove erroneous check_gpio(ident) in peripheral_free() Reported-by: Michael McTernan Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index 4c14331978f..ea67ae5b033 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c @@ -977,9 +977,6 @@ void peripheral_free(unsigned short per) if (!(per & P_DEFINED)) return; - if (check_gpio(ident) < 0) - return; - local_irq_save_hw(flags); if (unlikely(!(reserved_peri_map[gpio_bank(ident)] & gpio_bit(ident)))) {