summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/rtlx-cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/rtlx-cmp.c')
-rw-r--r--arch/mips/kernel/rtlx-cmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/rtlx-cmp.c b/arch/mips/kernel/rtlx-cmp.c
index 56dc69635153..758fb3cd2326 100644
--- a/arch/mips/kernel/rtlx-cmp.c
+++ b/arch/mips/kernel/rtlx-cmp.c
@@ -112,5 +112,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;
}