git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86, msr/cpuid: Pass the number of minors when unregistering MSR and CPUID drivers.
[pandora-kernel.git]
/
arch
/
x86
/
kernel
/
cpuid.c
diff --git
a/arch/x86/kernel/cpuid.c
b/arch/x86/kernel/cpuid.c
index
cb27fd6
..
83e5e62
100644
(file)
--- a/
arch/x86/kernel/cpuid.c
+++ b/
arch/x86/kernel/cpuid.c
@@
-229,7
+229,7
@@
static void __exit cpuid_exit(void)
for_each_online_cpu(cpu)
cpuid_device_destroy(cpu);
class_destroy(cpuid_class);
-
unregister_chrdev(CPUID_MAJOR
, "cpu/cpuid");
+
__unregister_chrdev(CPUID_MAJOR, 0, NR_CPUS
, "cpu/cpuid");
unregister_hotcpu_notifier(&cpuid_class_cpu_notifier);
}