[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/12] nand: put it into the 'storage' category
From: |
Thomas Huth |
Subject: |
[PULL 11/12] nand: put it into the 'storage' category |
Date: |
Tue, 17 Nov 2020 10:57:47 +0100 |
From: Gan Qixin <ganqixin@huawei.com>
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 | 1 +
1 file changed, 1 insertion(+)
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 = {
--
2.18.4
- [PULL 01/12] qemu/bswap: Remove unused qemu_bswap_len(), (continued)
- [PULL 01/12] qemu/bswap: Remove unused qemu_bswap_len(), Thomas Huth, 2020/11/17
- [PULL 02/12] configure: Fix the _BSD_SOURCE define for the Haiku build, Thomas Huth, 2020/11/17
- [PULL 07/12] target/microblaze: Fix possible array out of bounds in mmu_write(), Thomas Huth, 2020/11/17
- [PULL 08/12] gitlab-ci: Use $CI_REGISTRY instead of hard-coding registry.gitlab.com, Thomas Huth, 2020/11/17
- [PULL 03/12] configure: Do not build pc-bios/optionrom on Haiku, Thomas Huth, 2020/11/17
- [PULL 09/12] ssd0323: put it into the 'display' category, Thomas Huth, 2020/11/17
- [PULL 04/12] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h, Thomas Huth, 2020/11/17
- [PULL 05/12] tests/vm: Add Haiku test based on their vagrant images, Thomas Huth, 2020/11/17
- [PULL 06/12] tests/vm: update NetBSD to 9.1, Thomas Huth, 2020/11/17
- [PULL 10/12] ads7846: put it into the 'input' category, Thomas Huth, 2020/11/17
- [PULL 11/12] nand: put it into the 'storage' category,
Thomas Huth <=
- [PULL 12/12] max111x: put it into the 'misc' category, Thomas Huth, 2020/11/17
- Re: [PULL 00/12] Misc fixes for 5.2, Peter Maydell, 2020/11/17