summaryrefslogtreecommitdiffstats
path: root/hw/block
diff options
context:
space:
mode:
authorGan Qixin2020-11-12 13:58:23 +0100
committerThomas Huth2020-11-17 10:17:02 +0100
commit84aab60c126606928bef36aab3613bd209f58b31 (patch)
tree0a78791012ea4f8dc74a7505caaf0ce4e3f2be3e /hw/block
parentads7846: put it into the 'input' category (diff)
downloadqemu-84aab60c126606928bef36aab3613bd209f58b31.tar.gz
qemu-84aab60c126606928bef36aab3613bd209f58b31.tar.xz
qemu-84aab60c126606928bef36aab3613bd209f58b31.zip
nand: put it into the 'storage' category
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>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nand.c b/hw/block/nand.c
index bcceb64ebb..1d7a48a2ec 100644
--- a/hw/block/nand.c
+++ b/hw/block/nand.c
@@ -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 = {