diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index f7e35e7965fc..efa27cb1b721 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c | |||
@@ -428,8 +428,11 @@ static unsigned int bfin_gpio_irq_startup(unsigned int irq) | |||
428 | 428 | ||
429 | static void bfin_gpio_irq_shutdown(unsigned int irq) | 429 | static void bfin_gpio_irq_shutdown(unsigned int irq) |
430 | { | 430 | { |
431 | u32 gpionr = irq_to_gpio(irq); | ||
432 | |||
431 | bfin_gpio_mask_irq(irq); | 433 | bfin_gpio_mask_irq(irq); |
432 | __clear_bit(irq_to_gpio(irq), gpio_enabled); | 434 | __clear_bit(gpionr, gpio_enabled); |
435 | bfin_gpio_free(gpionr); | ||
433 | } | 436 | } |
434 | 437 | ||
435 | static int bfin_gpio_irq_type(unsigned int irq, unsigned int type) | 438 | static int bfin_gpio_irq_type(unsigned int irq, unsigned int type) |
@@ -730,6 +733,7 @@ static void bfin_gpio_irq_shutdown(unsigned int irq) | |||
730 | 733 | ||
731 | bfin_gpio_mask_irq(irq); | 734 | bfin_gpio_mask_irq(irq); |
732 | __clear_bit(gpionr, gpio_enabled); | 735 | __clear_bit(gpionr, gpio_enabled); |
736 | bfin_gpio_free(gpionr); | ||
733 | } | 737 | } |
734 | 738 | ||
735 | static int bfin_gpio_irq_type(unsigned int irq, unsigned int type) | 739 | static int bfin_gpio_irq_type(unsigned int irq, unsigned int type) |