Skip to content

Commit

Permalink
Staging: ipack/devices/ipoctal: free the IRQ.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Iglesias Gonsálvez authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent ca8481c commit 690949e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/ipack/devices/ipoctal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 690949e

Please sign in to comment.