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

From
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date
2007-02-12 23:11:02
Reply to
Sylvain Munaut, 2007-02-12
On Mon, 2007-02-12 at 23:13 +0100, Sylvain Munaut wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Sylvain Munaut <redacted>
Acked-by: Grant Likely <redacted>
---
 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;
 }
The NO_IRQ test isn't useful.

Cheers,
Ben
Thread (28 messages) 28 messages, 7 authors, last reply 2007-03-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help