diff options
| author | Michael Hennerich <michael.hennerich@analog.com> | 2009-02-04 03:49:45 -0500 |
|---|---|---|
| committer | Bryan Wu <cooloney@kernel.org> | 2009-02-04 03:49:45 -0500 |
| commit | 5e7bb132bbed2088b8b103e410d143b341dcb837 (patch) | |
| tree | fccd768b6141b7995536187243a518cfc71927e6 | |
| parent | 331693129d1764e38b15561e5712347fd591b2a9 (diff) | |
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 <mmcternan@airvana.com>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
| -rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index 4c14331978f6..ea67ae5b033e 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) | |||
| 977 | if (!(per & P_DEFINED)) | 977 | if (!(per & P_DEFINED)) |
| 978 | return; | 978 | return; |
| 979 | 979 | ||
| 980 | if (check_gpio(ident) < 0) | ||
| 981 | return; | ||
| 982 | |||
| 983 | local_irq_save_hw(flags); | 980 | local_irq_save_hw(flags); |
| 984 | 981 | ||
| 985 | if (unlikely(!(reserved_peri_map[gpio_bank(ident)] & gpio_bit(ident)))) { | 982 | if (unlikely(!(reserved_peri_map[gpio_bank(ident)] & gpio_bit(ident)))) { |
