projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: APRP: Unregister rtlx interrupt hook at module exit
[firefly-linux-kernel-4.4.55.git]
/
arch
/
mips
/
kernel
/
rtlx-mt.c
diff --git
a/arch/mips/kernel/rtlx-mt.c
b/arch/mips/kernel/rtlx-mt.c
index 91d61ba422b4677fdc956b0a5707ddb58740212a..9c1aca00fd5442e8b44a259ad99e2c328718b600 100644
(file)
--- 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;
}