Staging: ipack/devices/ipoctal: free the IRQ.
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 11 Sep 2012 11:35:08 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 19:18:11 +0000 (12:18 -0700)
As the IRQ was requested by the driver, it should free it also.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/devices/ipoctal.c

index 272832f7c80e4c7f5607f6ee3ebb4b4696aa6248..35513d9e013a6698be58cfb1ed25d53229c29bc4 100644 (file)
@@ -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]);