diff options
Diffstat (limited to 'hw/char/milkymist-uart.c')
-rw-r--r-- | hw/char/milkymist-uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/char/milkymist-uart.c b/hw/char/milkymist-uart.c index 300a9150cf..41204a0e28 100644 --- a/hw/char/milkymist-uart.c +++ b/hw/char/milkymist-uart.c @@ -59,8 +59,8 @@ enum { #define TYPE_MILKYMIST_UART "milkymist-uart" typedef struct MilkymistUartState MilkymistUartState; -#define MILKYMIST_UART(obj) \ - OBJECT_CHECK(MilkymistUartState, (obj), TYPE_MILKYMIST_UART) +DECLARE_INSTANCE_CHECKER(MilkymistUartState, MILKYMIST_UART, + TYPE_MILKYMIST_UART) struct MilkymistUartState { SysBusDevice parent_obj; |