aboutsummaryrefslogtreecommitdiff
path: root/include/hw/gpio/imx_gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/gpio/imx_gpio.h')
-rw-r--r--include/hw/gpio/imx_gpio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/gpio/imx_gpio.h b/include/hw/gpio/imx_gpio.h
index b7dc689f73..a72b272ace 100644
--- a/include/hw/gpio/imx_gpio.h
+++ b/include/hw/gpio/imx_gpio.h
@@ -25,7 +25,8 @@
#define TYPE_IMX_GPIO "imx.gpio"
typedef struct IMXGPIOState IMXGPIOState;
-#define IMX_GPIO(obj) OBJECT_CHECK(IMXGPIOState, (obj), TYPE_IMX_GPIO)
+DECLARE_INSTANCE_CHECKER(IMXGPIOState, IMX_GPIO,
+ TYPE_IMX_GPIO)
#define IMX_GPIO_MEM_SIZE 0x20