aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/hcd-ohci.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/hcd-ohci.h')
-rw-r--r--hw/usb/hcd-ohci.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb/hcd-ohci.h b/hw/usb/hcd-ohci.h
index 3e9053f..6e28e97 100644
--- a/hw/usb/hcd-ohci.h
+++ b/hw/usb/hcd-ohci.h
@@ -94,7 +94,8 @@ typedef struct OHCIState {
#define TYPE_SYSBUS_OHCI "sysbus-ohci"
typedef struct OHCISysBusState OHCISysBusState;
-#define SYSBUS_OHCI(obj) OBJECT_CHECK(OHCISysBusState, (obj), TYPE_SYSBUS_OHCI)
+DECLARE_INSTANCE_CHECKER(OHCISysBusState, SYSBUS_OHCI,
+ TYPE_SYSBUS_OHCI)
struct OHCISysBusState {
/*< private >*/