aboutsummaryrefslogtreecommitdiff
path: root/include/hw/char/cadence_uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/char/cadence_uart.h')
-rw-r--r--include/hw/char/cadence_uart.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/char/cadence_uart.h b/include/hw/char/cadence_uart.h
index 3d02d6ef1a..1734f53541 100644
--- a/include/hw/char/cadence_uart.h
+++ b/include/hw/char/cadence_uart.h
@@ -33,8 +33,8 @@
#define TYPE_CADENCE_UART "cadence_uart"
typedef struct CadenceUARTState CadenceUARTState;
-#define CADENCE_UART(obj) OBJECT_CHECK(CadenceUARTState, (obj), \
- TYPE_CADENCE_UART)
+DECLARE_INSTANCE_CHECKER(CadenceUARTState, CADENCE_UART,
+ TYPE_CADENCE_UART)
struct CadenceUARTState {
/*< private >*/