macio: add to bridge category
authorLaurent Vivier <laurent@vivier.eu>
Sat, 26 Sep 2015 16:22:10 +0000 (18:22 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Oct 2015 01:35:18 +0000 (12:35 +1100)
macio is a bridge between the PCI bus and the Mac nvram,
IDE controller and PIC, so add it to the bridge category.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/misc/macio/macio.c

index c661f86..adb990e 100644 (file)
@@ -393,6 +393,7 @@ static void macio_class_init(ObjectClass *klass, void *data)
     k->vendor_id = PCI_VENDOR_ID_APPLE;
     k->class_id = PCI_CLASS_OTHERS << 8;
     dc->props = macio_properties;
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
 }
 
 static const TypeInfo macio_oldworld_type_info = {