提交 30af6d49 编写于 作者: G Graf Yang 提交者: Bryan Wu

Blackfin arch: Add code to free gpio when shutdown irq

Signed-off-by: NGraf Yang <graf.yang@analog.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 b7e11293
......@@ -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)
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册