aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/slavio_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/timer/slavio_timer.c')
-rw-r--r--hw/timer/slavio_timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/timer/slavio_timer.c b/hw/timer/slavio_timer.c
index 28d6123..08d6888 100644
--- a/hw/timer/slavio_timer.c
+++ b/hw/timer/slavio_timer.c
@@ -61,8 +61,8 @@ typedef struct CPUTimerState {
#define TYPE_SLAVIO_TIMER "slavio_timer"
typedef struct SLAVIO_TIMERState SLAVIO_TIMERState;
-#define SLAVIO_TIMER(obj) \
- OBJECT_CHECK(SLAVIO_TIMERState, (obj), TYPE_SLAVIO_TIMER)
+DECLARE_INSTANCE_CHECKER(SLAVIO_TIMERState, SLAVIO_TIMER,
+ TYPE_SLAVIO_TIMER)
struct SLAVIO_TIMERState {
SysBusDevice parent_obj;