diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-01-19 12:26:57 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-01-19 12:26:57 +0000 |
commit | f43aaba191bfbe20a1f55ec05f43813ce381cd53 (patch) | |
tree | 2b4ad27e7dcae3df4e8d602b26fb4952fa902ded /drivers/serial/imx.c | |
parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) | |
download | kernel-crypto-f43aaba191bfbe20a1f55ec05f43813ce381cd53.tar.gz kernel-crypto-f43aaba191bfbe20a1f55ec05f43813ce381cd53.tar.xz kernel-crypto-f43aaba191bfbe20a1f55ec05f43813ce381cd53.zip |
[ARM] Convert request_irq+set_irq_type to request_irq with SA_TRIGGER
There's no need to have request_irq followed by set_irq_type.
Just use request_irq with the appropriate SA_TRIGGER flags.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial/imx.c')
-rw-r--r-- | drivers/serial/imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 587cc6a9511..fa3bbd6c751 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c @@ -402,10 +402,10 @@ static int imx_startup(struct uart_port *port) DRIVER_NAME, sport); if (retval) goto error_out2; - retval = request_irq(sport->rtsirq, imx_rtsint, 0, + retval = request_irq(sport->rtsirq, imx_rtsint, + SA_TRIGGER_FALLING | SA_TRIGGER_RISING, DRIVER_NAME, sport); if (retval) goto error_out3; - set_irq_type(sport->rtsirq, IRQT_BOTHEDGE); /* * Finally, clear and enable interrupts |