]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/net/lance.c
devices: Associate devices to their logical category
[thirdparty/qemu.git] / hw / net / lance.c
index 98bcdfce8bd7f5cb4fc93911e961113ada257afa..1be7b7250633f3d07d10a4ffca459b338889349a 100644 (file)
@@ -150,6 +150,7 @@ static void lance_class_init(ObjectClass *klass, void *data)
     SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
 
     k->init = lance_init;
+    set_bit(DEVICE_CATEGORY_NETWORK, dc->categories);
     dc->fw_name = "ethernet";
     dc->reset = lance_reset;
     dc->vmsd = &vmstate_lance;