diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2007-02-15 23:18:08 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-17 08:20:18 +0100 |
commit | fc7900bb04c4290f3a8e43abf231aee566feff6d (patch) | |
tree | 974a4970501cf175588f2e9415707cdad2dd5d19 /drivers/serial | |
parent | [POWERPC] pseries: Enabling auto poweron after power is restored. (diff) | |
download | linux-fc7900bb04c4290f3a8e43abf231aee566feff6d.tar.xz linux-fc7900bb04c4290f3a8e43abf231aee566feff6d.zip |
[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')
-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; } |