aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-06-13 22:58:54 -0400
committerShawn Guo <shawn.guo@linaro.org>2012-07-01 09:59:07 -0400
commit1ee8f65b5689504b98dacb6641fc8b2cc5618ad4 (patch)
tree93ca9adcefc4a3510198239ab808ddabb9bfd107
parent69fcbc74bb7a8b3c86e15f27b74ee512633ffcc6 (diff)
tty: serial: imx: remove the use of MXC_INTERNAL_IRQS
As the part of the effort to enable SPARE_IRQ for imx platform, the macro MXC_INTERNAL_IRQS will be removed. The imx serial driver has a references to it for a decision on flags of request_irq call based on rtsirq is beyond MXC_INTERNAL_IRQS. However the searching on imx platform code tells that rtsirq will never be beyond MXC_INTERNAL_IRQS. That said, the check, consequently the reference to MXC_INTERNAL_IRQS are not needed, so remove them. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Cc: linux-serial@vger.kernel.org Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
-rw-r--r--drivers/tty/serial/imx.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 4ef747307ecb..d5c689d6217e 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -169,7 +169,6 @@
169#define SERIAL_IMX_MAJOR 207 169#define SERIAL_IMX_MAJOR 207
170#define MINOR_START 16 170#define MINOR_START 16
171#define DEV_NAME "ttymxc" 171#define DEV_NAME "ttymxc"
172#define MAX_INTERNAL_IRQ MXC_INTERNAL_IRQS
173 172
174/* 173/*
175 * This determines how often we check the modem status signals 174 * This determines how often we check the modem status signals
@@ -741,10 +740,7 @@ static int imx_startup(struct uart_port *port)
741 740
742 /* do not use RTS IRQ on IrDA */ 741 /* do not use RTS IRQ on IrDA */
743 if (!USE_IRDA(sport)) { 742 if (!USE_IRDA(sport)) {
744 retval = request_irq(sport->rtsirq, imx_rtsint, 743 retval = request_irq(sport->rtsirq, imx_rtsint, 0,
745 (sport->rtsirq < MAX_INTERNAL_IRQ) ? 0 :
746 IRQF_TRIGGER_FALLING |
747 IRQF_TRIGGER_RISING,
748 DRIVER_NAME, sport); 744 DRIVER_NAME, sport);
749 if (retval) 745 if (retval)
750 goto error_out3; 746 goto error_out3;