]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
nand: put it into the 'storage' category
authorGan Qixin <ganqixin@huawei.com>
Thu, 12 Nov 2020 12:58:23 +0000 (20:58 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Nov 2020 09:17:02 +0000 (10:17 +0100)
The category of the nand device is not set, put it into the 'storage'
category.

Signed-off-by: Gan Qixin <ganqixin@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201112125824.763182-4-ganqixin@huawei.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/block/nand.c

index bcceb64ebb76718bbde2fb24b7adb52d076458f5..1d7a48a2ec2ad7ac77dc4b28f6779fd127428a6c 100644 (file)
@@ -449,6 +449,7 @@ static void nand_class_init(ObjectClass *klass, void *data)
     dc->reset = nand_reset;
     dc->vmsd = &vmstate_nand;
     device_class_set_props(dc, nand_properties);
+    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
 }
 
 static const TypeInfo nand_info = {