diff options
author | Avi Kivity <avi@qumranet.com> | 2007-03-04 06:27:36 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 03:52:22 -0400 |
commit | bbe4432e669ab94fc8059e7ab878cafad7b8d123 (patch) | |
tree | 86a0c878e232a5bcf6978165d0d5a482a22f3a62 | |
parent | 510043da8582ad49d22a1e9a6b211e6ede10cd2e (diff) |
KVM: Use own minor number
Use the minor number (232) allocated to kvm by lanana.
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | drivers/kvm/kvm_main.c | 2 | ||||
-rw-r--r-- | include/linux/miscdevice.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index ff7c836ff001..946ed86a0595 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -2299,7 +2299,7 @@ static struct file_operations kvm_chardev_ops = { | |||
2299 | }; | 2299 | }; |
2300 | 2300 | ||
2301 | static struct miscdevice kvm_dev = { | 2301 | static struct miscdevice kvm_dev = { |
2302 | MISC_DYNAMIC_MINOR, | 2302 | KVM_MINOR, |
2303 | "kvm", | 2303 | "kvm", |
2304 | &kvm_chardev_ops, | 2304 | &kvm_chardev_ops, |
2305 | }; | 2305 | }; |
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h index 326da7d500c7..dff9ea32606a 100644 --- a/include/linux/miscdevice.h +++ b/include/linux/miscdevice.h | |||
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | #define TUN_MINOR 200 | 30 | #define TUN_MINOR 200 |
31 | #define HPET_MINOR 228 | 31 | #define HPET_MINOR 228 |
32 | #define KVM_MINOR 232 | ||
32 | 33 | ||
33 | struct device; | 34 | struct device; |
34 | 35 | ||