diff options
author | Russ Anderson <rja@sgi.com> | 2010-01-26 20:37:22 -0600 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-01-26 23:52:38 -0800 |
commit | da482474b8396e1a099c37ffc6541b78775aedb4 (patch) | |
tree | bc236d38ba1c6d5319eeafb02ed8a3d7bc4dd9aa /arch/x86/kernel/msr.c | |
parent | b160091802d4a76dd063facb09fcf10bf5d5d747 (diff) | |
download | op-kernel-dev-da482474b8396e1a099c37ffc6541b78775aedb4.zip op-kernel-dev-da482474b8396e1a099c37ffc6541b78775aedb4.tar.gz |
x86, msr/cpuid: Pass the number of minors when unregistering MSR and CPUID drivers.
Pass the number of minors when unregistering MSR and CPUID drivers.
Reported-by: Dean Nelson <dnelson@redhat.com>
Signed-off-by: Dean Nelson <dnelson@redhat.com>
LKML-Reference: <20100127023722.GA22305@sgi.com>
Signed-off-by: Russ Anderson <rja@sgi.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/msr.c')
-rw-r--r-- | arch/x86/kernel/msr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c index 4bd93c9..206735a 100644 --- a/arch/x86/kernel/msr.c +++ b/arch/x86/kernel/msr.c @@ -285,7 +285,7 @@ static void __exit msr_exit(void) for_each_online_cpu(cpu) msr_device_destroy(cpu); class_destroy(msr_class); - unregister_chrdev(MSR_MAJOR, "cpu/msr"); + __unregister_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr"); unregister_hotcpu_notifier(&msr_class_cpu_notifier); } |