Commit 5e7bb132 authored by Michael Hennerich's avatar Michael Hennerich Committed by Bryan Wu

Blackfin arch: Fix Bug - request lines with peripheral_request_list, but don't...

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: default avatarMichael McTernan <mmcternan@airvana.com>
Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 33169312
...@@ -977,9 +977,6 @@ void peripheral_free(unsigned short per) ...@@ -977,9 +977,6 @@ void peripheral_free(unsigned short per)
if (!(per & P_DEFINED)) if (!(per & P_DEFINED))
return; return;
if (check_gpio(ident) < 0)
return;
local_irq_save_hw(flags); local_irq_save_hw(flags);
if (unlikely(!(reserved_peri_map[gpio_bank(ident)] & gpio_bit(ident)))) { if (unlikely(!(reserved_peri_map[gpio_bank(ident)] & gpio_bit(ident)))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment