[PATCH 01/10] powerpc/serial: Dispose irq mapping when done in mpc52xx_serial.c

Sylvain Munaut tnt at 246tNt.com
Tue Feb 13 09:13:19 EST 2007


Signed-off-by: Sylvain Munaut <tnt at 246tNt.com>
Acked-by: Grant Likely <grant.likely at secretlab.ca>
---
 drivers/serial/mpc52xx_uart.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
index 6999816..ee4ebaf 100644
--- a/drivers/serial/mpc52xx_uart.c
+++ b/drivers/serial/mpc52xx_uart.c
@@ -999,6 +999,9 @@ mpc52xx_uart_of_remove(struct of_device 
 	if (port)
 		uart_remove_one_port(&mpc52xx_uart_driver, port);
 
+	if (port->irq != NO_IRQ)
+		irq_dispose_mapping(port->irq);
+
 	return 0;
 }
 
-- 
1.4.2




More information about the Linuxppc-dev mailing list