tty: serial: lpuart: avoid report NULL interrupt
authorFugang Duan <fugang.duan@nxp.com>
Mon, 4 Sep 2017 11:20:24 +0000 (19:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 16:19:21 +0000 (18:19 +0200)
commit9d7ee0e28da59b05647c3d2a7ad4076c16b1a6ef
treec2cdfb4443b5da3a7a5dc012faf495d86e6feb58
parent0e5ec4140c4a8a38c4ff7293c018eb7da69a30db
tty: serial: lpuart: avoid report NULL interrupt

The current driver register irq in .startup() and free the irq in
.shutdown(), then user will see the NULL interrupt output from
'cat /proc/interrupts' after the uart port test completed:
...
 41:        515          0          0          0     GICv3 257 Level     fsl-lpuart
 42:          2          0          0          0     GICv3 258 Level
...

It is better to register all the irqs during probe function via devm_request_irq()
to avoid to call free_irq().

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c