diff options
Diffstat (limited to 'hw/timer/altera_timer.c')
-rw-r--r-- | hw/timer/altera_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/timer/altera_timer.c b/hw/timer/altera_timer.c index 93bd5b9587..c694c98d08 100644 --- a/hw/timer/altera_timer.c +++ b/hw/timer/altera_timer.c @@ -46,8 +46,8 @@ #define TYPE_ALTERA_TIMER "ALTR.timer" typedef struct AlteraTimer AlteraTimer; -#define ALTERA_TIMER(obj) \ - OBJECT_CHECK(AlteraTimer, (obj), TYPE_ALTERA_TIMER) +DECLARE_INSTANCE_CHECKER(AlteraTimer, ALTERA_TIMER, + TYPE_ALTERA_TIMER) struct AlteraTimer { SysBusDevice busdev; |