Skip to content

Commit

Permalink
Blackfin arch: Fix Bug - request lines with peripheral_request_list, …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Feb 4, 2009
1 parent 3316931 commit 5e7bb13
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/blackfin/kernel/bfin_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))) {
Expand Down

0 comments on commit 5e7bb13

Please sign in to comment.