Browse Source

KVM: Use own minor number

Use the minor number (232) allocated to kvm by lanana.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Avi Kivity 18 years ago
parent
commit
bbe4432e66
2 changed files with 2 additions and 1 deletions
  1. 1 1
      drivers/kvm/kvm_main.c
  2. 1 0
      include/linux/miscdevice.h

+ 1 - 1
drivers/kvm/kvm_main.c

@@ -2299,7 +2299,7 @@ static struct file_operations kvm_chardev_ops = {
 };
 
 static struct miscdevice kvm_dev = {
-	MISC_DYNAMIC_MINOR,
+	KVM_MINOR,
 	"kvm",
 	&kvm_chardev_ops,
 };

+ 1 - 0
include/linux/miscdevice.h

@@ -29,6 +29,7 @@
 
 #define TUN_MINOR	     200
 #define	HPET_MINOR	     228
+#define KVM_MINOR            232
 
 struct device;