summaryrefslogtreecommitdiffstats
path: root/hw/arm/microbit.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/arm/microbit.c')
-rw-r--r--hw/arm/microbit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/arm/microbit.c b/hw/arm/microbit.c
index e94f711e89..9a4a3d357a 100644
--- a/hw/arm/microbit.c
+++ b/hw/arm/microbit.c
@@ -30,8 +30,8 @@ typedef struct MicrobitMachineState MicrobitMachineState;
#define TYPE_MICROBIT_MACHINE MACHINE_TYPE_NAME("microbit")
-#define MICROBIT_MACHINE(obj) \
- OBJECT_CHECK(MicrobitMachineState, obj, TYPE_MICROBIT_MACHINE)
+DECLARE_INSTANCE_CHECKER(MicrobitMachineState, MICROBIT_MACHINE,
+ TYPE_MICROBIT_MACHINE)
static void microbit_init(MachineState *machine)
{