]> Pileus Git - ~andy/linux/blobdiff - drivers/serial/mpc52xx_uart.c
USB: ratelimit debounce error messages
[~andy/linux] / 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;
 }