|
@@ -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);
|
|
|
}
|
|
|
|