[POWERPC] Dispose irq mapping when done in mpc52xx_serial.c
authorSylvain Munaut <tnt@246tNt.com>
Thu, 15 Feb 2007 22:18:08 +0000 (23:18 +0100)
committerPaul Mackerras <paulus@samba.org>
Sat, 17 Feb 2007 07:20:18 +0000 (18:20 +1100)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/serial/mpc52xx_uart.c

index 955bbd653e22c0c94764c1503c7f3c1818bcdb9a..8d24cd521056793828df902ce864210653ca408d 100644 (file)
@@ -995,8 +995,10 @@ mpc52xx_uart_of_remove(struct of_device *op)
        struct uart_port *port = dev_get_drvdata(&op->dev);
        dev_set_drvdata(&op->dev, NULL);
 
-       if (port)
+       if (port) {
                uart_remove_one_port(&mpc52xx_uart_driver, port);
+               irq_dispose_mapping(port->irq);
+       }
 
        return 0;
 }