aboutsummaryrefslogtreecommitdiff
path: root/hw/gpio/puv3_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/puv3_gpio.c')
-rw-r--r--hw/gpio/puv3_gpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/gpio/puv3_gpio.c b/hw/gpio/puv3_gpio.c
index 5e0ee78..98ea2b4 100644
--- a/hw/gpio/puv3_gpio.c
+++ b/hw/gpio/puv3_gpio.c
@@ -20,7 +20,8 @@
#define TYPE_PUV3_GPIO "puv3_gpio"
typedef struct PUV3GPIOState PUV3GPIOState;
-#define PUV3_GPIO(obj) OBJECT_CHECK(PUV3GPIOState, (obj), TYPE_PUV3_GPIO)
+DECLARE_INSTANCE_CHECKER(PUV3GPIOState, PUV3_GPIO,
+ TYPE_PUV3_GPIO)
struct PUV3GPIOState {
SysBusDevice parent_obj;