]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/timer/slavio_timer.c
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / hw / timer / slavio_timer.c
index 28d612372b036081df4327ff6ff415052aae2dd8..08d6888015a8d7b109f1abc17a13588aab1bbfe3 100644 (file)
@@ -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;