aboutsummaryrefslogtreecommitdiff
path: root/include/hw/timer/imx_gpt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/timer/imx_gpt.h')
-rw-r--r--include/hw/timer/imx_gpt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/timer/imx_gpt.h b/include/hw/timer/imx_gpt.h
index b96633d8b2..ff5c8a351a 100644
--- a/include/hw/timer/imx_gpt.h
+++ b/include/hw/timer/imx_gpt.h
@@ -83,7 +83,8 @@
#define TYPE_IMX_GPT TYPE_IMX25_GPT
typedef struct IMXGPTState IMXGPTState;
-#define IMX_GPT(obj) OBJECT_CHECK(IMXGPTState, (obj), TYPE_IMX_GPT)
+DECLARE_INSTANCE_CHECKER(IMXGPTState, IMX_GPT,
+ TYPE_IMX_GPT)
struct IMXGPTState {
/*< private >*/