]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/net/pcnet-pci.c
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
[mirror_qemu.git] / hw / net / pcnet-pci.c
index 449970bc52dcfe922384e35594580012a0a26e5a..ccc3fce2a00e20e7c44b1f045df7ee0ea7290f00 100644 (file)
@@ -52,9 +52,7 @@
 
 #define TYPE_PCI_PCNET "pcnet"
 
-typedef struct PCIPCNetState PCIPCNetState;
-DECLARE_INSTANCE_CHECKER(PCIPCNetState, PCI_PCNET,
-                         TYPE_PCI_PCNET)
+OBJECT_DECLARE_SIMPLE_TYPE(PCIPCNetState, PCI_PCNET)
 
 struct PCIPCNetState {
     /*< private >*/