diff options
author | Fugang Duan <fugang.duan@nxp.com> | 2017-09-04 14:20:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-18 19:19:21 +0300 |
commit | 9d7ee0e28da59b05647c3d2a7ad4076c16b1a6ef (patch) | |
tree | c2cdfb4443b5da3a7a5dc012faf495d86e6feb58 /ipc/msg.c | |
parent | 0e5ec4140c4a8a38c4ff7293c018eb7da69a30db (diff) | |
download | linux-9d7ee0e28da59b05647c3d2a7ad4076c16b1a6ef.tar.xz |
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>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions