diff options
author | Laurent Vivier <laurent@vivier.eu> | 2015-09-26 18:22:06 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2015-10-23 12:35:18 +1100 |
commit | e16244355f8d5efc94df965b1f6a5a0b6c50a2f2 (patch) | |
tree | a41ffcfdd3170e9fd79b29515c3a9dc4a6048921 /hw | |
parent | f8d4c07c7807d0f7be02f42d2ee849d2eea4141e (diff) |
grackle: add to bridge category
Grackle is the PCI host controller of oldworld powermac,
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pci-host/grackle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c index bfe707a1a1..ea31b72e7c 100644 --- a/hw/pci-host/grackle.c +++ b/hw/pci-host/grackle.c @@ -146,8 +146,10 @@ static const TypeInfo grackle_pci_info = { static void pci_grackle_class_init(ObjectClass *klass, void *data) { SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); + DeviceClass *dc = DEVICE_CLASS(klass); k->init = pci_grackle_init_device; + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } static const TypeInfo grackle_pci_host_info = { |