[PATCH -next] pcmcia: m8xx: fix to pass correct device identity to free_irq()
Wei Yongjun
weiyj.lk at gmail.com
Fri Nov 15 04:45:31 EST 2013
From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
free_irq() expects the same device identity that was passed to
corresponding request_irq(), otherwise the IRQ is not freed.
Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
---
drivers/pcmcia/m8xx_pcmcia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c
index 182034d..b0307b5 100644
--- a/drivers/pcmcia/m8xx_pcmcia.c
+++ b/drivers/pcmcia/m8xx_pcmcia.c
@@ -1140,7 +1140,7 @@ static int m8xx_remove(struct platform_device *ofdev)
pcmcia_unregister_socket(&socket[i].socket);
iounmap(pcmcia);
- free_irq(pcmcia_schlvl, NULL);
+ free_irq(pcmcia_schlvl, socket);
return 0;
}
More information about the linux-pcmcia
mailing list