ef3c42dc30ff179605c09aecdc0785e4ca6f2e95
[openembedded.git] /
1 From 733239db928c98f4d110fc33f0cf1278cf5385ef Mon Sep 17 00:00:00 2001
2 From: Sylvain Munaut <tnt@246tNt.com>
3 Date: Mon, 18 Dec 2006 22:48:02 +0100
4 Subject: [PATCH] [PATCH] powerpc/serial: Dispose irq mapping when done in mpc52xx_serial.c
5
6 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
7 ---
8  drivers/serial/mpc52xx_uart.c |    3 +++
9  1 files changed, 3 insertions(+), 0 deletions(-)
10
11 diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
12 index 9d11a75..eef3b02 100644
13 --- a/drivers/serial/mpc52xx_uart.c
14 +++ b/drivers/serial/mpc52xx_uart.c
15 @@ -997,6 +997,9 @@ mpc52xx_uart_of_remove(struct of_device *op)
16         if (port)
17                 uart_remove_one_port(&mpc52xx_uart_driver, port);
18  
19 +       if (port->irq != NO_IRQ)
20 +               irq_dispose_mapping(port->irq);
21 +
22         return 0;
23  }
24  
25 -- 
26 1.4.4.2
27