]> err.no Git - linux-2.6/commitdiff
KVM: Use own minor number
authorAvi Kivity <avi@qumranet.com>
Sun, 4 Mar 2007 11:27:36 +0000 (13:27 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:22 +0000 (10:52 +0300)
Use the minor number (232) allocated to kvm by lanana.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
include/linux/miscdevice.h

index ff7c836ff001035fb7d4c7d74beb6c6cf2bcc16a..946ed86a059529d0955e7a7e92cc5ffe030df624 100644 (file)
@@ -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,
 };
index 326da7d500c73953624093bd6cb9ae995d8e1725..dff9ea32606a56e986fd6a2cc62375675eec61db 100644 (file)
@@ -29,6 +29,7 @@
 
 #define TUN_MINOR           200
 #define        HPET_MINOR           228
+#define KVM_MINOR            232
 
 struct device;