diff options
author | Deng-Cheng Zhu <dengcheng.zhu@imgtec.com> | 2014-02-28 22:23:02 +0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-06 23:55:07 +0400 |
commit | eee5794881d50e8ac3a56c74d3131f2364f200b9 (patch) | |
tree | 5a4d14461850821b6756e1c5dcd4216c90f5a072 /arch/mips/kernel/rtlx-mt.c | |
parent | 9c1f6e008297e184a7f701f2f03c9269011fd049 (diff) | |
download | linux-eee5794881d50e8ac3a56c74d3131f2364f200b9.tar.xz |
MIPS: APRP: Unregister rtlx interrupt hook at module exit
If the aprp_hook is not assigned back to NULL, it will still be called
after module exits. This is not wanted.
Reviewed-by: Steven J. Hill <Steven.Hill@imgtec.com>
Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: john@phrozen.org
Patchwork: https://patchwork.linux-mips.org/patch/6590/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/rtlx-mt.c')
-rw-r--r-- | arch/mips/kernel/rtlx-mt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/rtlx-mt.c b/arch/mips/kernel/rtlx-mt.c index 91d61ba422b4..9c1aca00fd54 100644 --- a/arch/mips/kernel/rtlx-mt.c +++ b/arch/mips/kernel/rtlx-mt.c @@ -144,5 +144,8 @@ void __exit rtlx_module_exit(void) for (i = 0; i < RTLX_CHANNELS; i++) device_destroy(mt_class, MKDEV(major, i)); + unregister_chrdev(major, RTLX_MODULE_NAME); + + aprp_hook = NULL; } |