[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL 01/13] hw: edu: set category of the edu device
From: |
Laurent Vivier |
Subject: |
[qemu-s390x] [PULL 01/13] hw: edu: set category of the edu device |
Date: |
Wed, 30 Jan 2019 14:22:02 +0100 |
From: kumar sourav <address@hidden>
Sets the category of edu device as DEVICE_CATEGORY_MISC.
Devices should be assigned to one of DEVICE_CATEGORY_XXXX.
Signed-off-by: kumar sourav <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
hw/misc/edu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/misc/edu.c b/hw/misc/edu.c
index ceaf688bfb..91af452c9e 100644
--- a/hw/misc/edu.c
+++ b/hw/misc/edu.c
@@ -399,6 +399,7 @@ static void edu_instance_init(Object *obj)
static void edu_class_init(ObjectClass *class, void *data)
{
+ DeviceClass *dc = DEVICE_CLASS(class);
PCIDeviceClass *k = PCI_DEVICE_CLASS(class);
k->realize = pci_edu_realize;
@@ -407,6 +408,7 @@ static void edu_class_init(ObjectClass *class, void *data)
k->device_id = 0x11e8;
k->revision = 0x10;
k->class_id = PCI_CLASS_OTHERS;
+ set_bit(DEVICE_CATEGORY_MISC, dc->categories);
}
static void pci_edu_register_types(void)
--
2.20.1
- [qemu-s390x] [PULL 00/13] Trivial branch patches, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 01/13] hw: edu: set category of the edu device,
Laurent Vivier <=
- [qemu-s390x] [PULL 02/13] typo: apci->acpi, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 03/13] hw: input: set category of the i8042 device, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 04/13] hw: sd: set category of the sd memory card, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 07/13] target/openrisc: Fix LGPL version number, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 13/13] virtio-blk: remove duplicate definition of VirtIOBlock *s pointer, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 06/13] COPYING.LIB: Synchronize the LGPL 2.1 with the version from gnu.org, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 05/13] Don't talk about the LGPL if the file is licensed under the GPL, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 10/13] target/s390x: Fix LGPL version in the file header comments, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 12/13] hw/block: clean up stale xen_disk trace entries, Laurent Vivier, 2019/01/30
- [qemu-s390x] [PULL 09/13] tcg: Fix LGPL version number, Laurent Vivier, 2019/01/30