diff options
author | Fugang Duan <fugang.duan@nxp.com> | 2017-09-04 19:20:24 +0800 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-09-27 18:44:17 +0200 |
commit | 9a787b35584bca160e430bc130c98dad7f642427 (patch) | |
tree | 9e0db87b7da7e3da62f2bb64cf55a5a70c97c666 /kernel/auditsc.c | |
parent | 5f0be50f3f17738aa767984f0fd1d19e06c7e188 (diff) |
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>
(cherry picked from commit 9d7ee0e28da59b05647c3d2a7ad4076c16b1a6ef)
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'kernel/auditsc.c')
0 files changed, 0 insertions, 0 deletions