From: Samuel Iglesias Gonsálvez Date: Tue, 11 Sep 2012 11:35:08 +0000 (+0200) Subject: Staging: ipack/devices/ipoctal: free the IRQ. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=690949e7faaed39300cc618c10a56dec3d1180c3;p=deliverable%2Flinux.git Staging: ipack/devices/ipoctal: free the IRQ. As the IRQ was requested by the driver, it should free it also. Signed-off-by: Samuel Iglesias Gonsálvez Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index 272832f7c80e..35513d9e013a 100644 --- a/drivers/staging/ipack/devices/ipoctal.c +++ b/drivers/staging/ipack/devices/ipoctal.c @@ -803,6 +803,8 @@ static void __ipoctal_remove(struct ipoctal *ipoctal) { int i; + ipoctal->dev->bus->ops->free_irq(ipoctal->dev); + for (i = 0; i < NR_CHANNELS; i++) { tty_unregister_device(ipoctal->tty_drv, i); tty_port_free_xmit_buf(&ipoctal->tty_port[i]);