]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i2c/smbus_ich9.c
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[mirror_qemu.git] / hw / i2c / smbus_ich9.c
index 2d4578511d11b8fc83e2664da9e0299a012b62f1..44dd5653b7f1ffe3ef7b5314a6c590330cd14115 100644 (file)
@@ -30,9 +30,7 @@
 #include "hw/i386/ich9.h"
 #include "qom/object.h"
 
-typedef struct ICH9SMBState ICH9SMBState;
-DECLARE_INSTANCE_CHECKER(ICH9SMBState, ICH9_SMB_DEVICE,
-                         TYPE_ICH9_SMB_DEVICE)
+OBJECT_DECLARE_SIMPLE_TYPE(ICH9SMBState, ICH9_SMB_DEVICE)
 
 struct ICH9SMBState {
     PCIDevice dev;