aboutsummaryrefslogtreecommitdiff
path: root/include/hw/usb/imx-usb-phy.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/usb/imx-usb-phy.h')
-rw-r--r--include/hw/usb/imx-usb-phy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/usb/imx-usb-phy.h b/include/hw/usb/imx-usb-phy.h
index 9861acb5ac..f7f92fc462 100644
--- a/include/hw/usb/imx-usb-phy.h
+++ b/include/hw/usb/imx-usb-phy.h
@@ -40,7 +40,8 @@ enum IMXUsbPhyRegisters {
#define TYPE_IMX_USBPHY "imx.usbphy"
typedef struct IMXUSBPHYState IMXUSBPHYState;
-#define IMX_USBPHY(obj) OBJECT_CHECK(IMXUSBPHYState, (obj), TYPE_IMX_USBPHY)
+DECLARE_INSTANCE_CHECKER(IMXUSBPHYState, IMX_USBPHY,
+ TYPE_IMX_USBPHY)
struct IMXUSBPHYState {
/* <private> */