summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/rtlx-mt.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/rtlx-mt.c')
-rw-r--r--arch/mips/kernel/rtlx-mt.c3
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;
}
OpenPOWER on IntegriCloud