Skip to content

Commit

Permalink
Blackfin arch: Add code to free gpio when shutdown irq
Browse files Browse the repository at this point in the history
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Graf Yang authored and Bryan Wu committed Nov 18, 2008
1 parent b7e1129 commit 30af6d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/blackfin/mach-common/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,11 @@ static unsigned int bfin_gpio_irq_startup(unsigned int irq)

static void bfin_gpio_irq_shutdown(unsigned int irq)
{
u32 gpionr = irq_to_gpio(irq);

bfin_gpio_mask_irq(irq);
__clear_bit(irq_to_gpio(irq), gpio_enabled);
__clear_bit(gpionr, gpio_enabled);
bfin_gpio_free(gpionr);
}

static int bfin_gpio_irq_type(unsigned int irq, unsigned int type)
Expand Down Expand Up @@ -730,6 +733,7 @@ static void bfin_gpio_irq_shutdown(unsigned int irq)

bfin_gpio_mask_irq(irq);
__clear_bit(gpionr, gpio_enabled);
bfin_gpio_free(gpionr);
}

static int bfin_gpio_irq_type(unsigned int irq, unsigned int type)
Expand Down

0 comments on commit 30af6d4

Please sign in to comment.