diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2007-02-16 01:18:08 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-17 10:20:18 +0300 |
commit | fc7900bb04c4290f3a8e43abf231aee566feff6d (patch) | |
tree | 974a4970501cf175588f2e9415707cdad2dd5d19 /drivers/serial/mpc52xx_uart.c | |
parent | 5d30bf309717a518d0c4180af41650d4dcd3bb38 (diff) | |
download | linux-fc7900bb04c4290f3a8e43abf231aee566feff6d.tar.xz |
[POWERPC] Dispose irq mapping when done in mpc52xx_serial.c
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/serial/mpc52xx_uart.c')
-rw-r--r-- | drivers/serial/mpc52xx_uart.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c index 955bbd653e22..8d24cd521056 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c @@ -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; } |