aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ssi/imx_spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/ssi/imx_spi.h')
-rw-r--r--include/hw/ssi/imx_spi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/ssi/imx_spi.h b/include/hw/ssi/imx_spi.h
index 3a966af0ec..874fea492d 100644
--- a/include/hw/ssi/imx_spi.h
+++ b/include/hw/ssi/imx_spi.h
@@ -79,7 +79,8 @@
#define TYPE_IMX_SPI "imx.spi"
typedef struct IMXSPIState IMXSPIState;
-#define IMX_SPI(obj) OBJECT_CHECK(IMXSPIState, (obj), TYPE_IMX_SPI)
+DECLARE_INSTANCE_CHECKER(IMXSPIState, IMX_SPI,
+ TYPE_IMX_SPI)
struct IMXSPIState {
/* <private> */