]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/isa/isa-bus: Set category of the "isabus-bridge" device
authorThomas Huth <thuth@redhat.com>
Fri, 20 Jan 2017 15:53:59 +0000 (16:53 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 24 Jan 2017 20:26:54 +0000 (23:26 +0300)
It has "bridge" in its name, so it should be in the category
DEVICE_CATEGORY_BRIDGE.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/isa/isa-bus.c

index 9d07b118c0d71a6c30d2fc10e3323047c137ed0b..0ffbc8dd280020e857e2eeab647d51d9934dc40e 100644 (file)
@@ -219,6 +219,7 @@ static void isabus_bridge_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     dc->fw_name = "isa";
 }