]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/net/etraxfs_eth.c
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / hw / net / etraxfs_eth.c
index 2bd37f6d0fbc844b48cf3112eb5a1661814cea29..36d898ad16f6276f85c1db152d4628cafe352a8f 100644 (file)
@@ -325,8 +325,8 @@ static void mdio_cycle(struct qemu_mdio *bus)
 
 #define TYPE_ETRAX_FS_ETH "etraxfs-eth"
 typedef struct ETRAXFSEthState ETRAXFSEthState;
-#define ETRAX_FS_ETH(obj) \
-    OBJECT_CHECK(ETRAXFSEthState, (obj), TYPE_ETRAX_FS_ETH)
+DECLARE_INSTANCE_CHECKER(ETRAXFSEthState, ETRAX_FS_ETH,
+                         TYPE_ETRAX_FS_ETH)
 
 struct ETRAXFSEthState {
     SysBusDevice parent_obj;