summaryrefslogtreecommitdiffstats
path: root/hw/usb/hcd-ohci-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/hcd-ohci-pci.c')
-rw-r--r--hw/usb/hcd-ohci-pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb/hcd-ohci-pci.c b/hw/usb/hcd-ohci-pci.c
index 82fe967196..f8168a06a3 100644
--- a/hw/usb/hcd-ohci-pci.c
+++ b/hw/usb/hcd-ohci-pci.c
@@ -33,7 +33,8 @@
#define TYPE_PCI_OHCI "pci-ohci"
typedef struct OHCIPCIState OHCIPCIState;
-#define PCI_OHCI(obj) OBJECT_CHECK(OHCIPCIState, (obj), TYPE_PCI_OHCI)
+DECLARE_INSTANCE_CHECKER(OHCIPCIState, PCI_OHCI,
+ TYPE_PCI_OHCI)
struct OHCIPCIState {
/*< private >*/