Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Shawn Guo 1ee8f65b 69fcbc74

+1 -5
+1 -5
drivers/tty/serial/imx.c
··· 169 169 #define SERIAL_IMX_MAJOR 207 170 170 #define MINOR_START 16 171 171 #define DEV_NAME "ttymxc" 172 - #define MAX_INTERNAL_IRQ MXC_INTERNAL_IRQS 173 172 174 173 /* 175 174 * This determines how often we check the modem status signals ··· 740 741 741 742 /* do not use RTS IRQ on IrDA */ 742 743 if (!USE_IRDA(sport)) { 743 - retval = request_irq(sport->rtsirq, imx_rtsint, 744 - (sport->rtsirq < MAX_INTERNAL_IRQ) ? 0 : 745 - IRQF_TRIGGER_FALLING | 746 - IRQF_TRIGGER_RISING, 744 + retval = request_irq(sport->rtsirq, imx_rtsint, 0, 747 745 DRIVER_NAME, sport); 748 746 if (retval) 749 747 goto error_out3;