aboutsummaryrefslogtreecommitdiff
path: root/include/hw/southbridge/piix.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/southbridge/piix.h')
-rw-r--r--include/hw/southbridge/piix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/southbridge/piix.h b/include/hw/southbridge/piix.h
index 21ad6327d2..6387f2b612 100644
--- a/include/hw/southbridge/piix.h
+++ b/include/hw/southbridge/piix.h
@@ -67,8 +67,8 @@ struct PIIXState {
typedef struct PIIXState PIIX3State;
#define TYPE_PIIX3_PCI_DEVICE "pci-piix3"
-#define PIIX3_PCI_DEVICE(obj) \
- OBJECT_CHECK(PIIX3State, (obj), TYPE_PIIX3_PCI_DEVICE)
+DECLARE_INSTANCE_CHECKER(PIIX3State, PIIX3_PCI_DEVICE,
+ TYPE_PIIX3_PCI_DEVICE)
extern PCIDevice *piix4_dev;