[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 19/23] mc146818rtc: put it into the 'misc' category
From: |
Laurent Vivier |
Subject: |
[PULL 19/23] mc146818rtc: put it into the 'misc' category |
Date: |
Mon, 3 May 2021 10:36:19 +0200 |
From: Gan Qixin <ganqixin@huawei.com>
The category of the mc146818rtc device is not set, put it into the 'misc'
category.
Signed-off-by: Gan Qixin <ganqixin@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20201130083630.2520597-6-ganqixin@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/rtc/mc146818rtc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/rtc/mc146818rtc.c b/hw/rtc/mc146818rtc.c
index 36a2dbf62f9c..3d2d3854e716 100644
--- a/hw/rtc/mc146818rtc.c
+++ b/hw/rtc/mc146818rtc.c
@@ -1039,6 +1039,7 @@ static void rtc_class_initfn(ObjectClass *klass, void
*data)
dc->vmsd = &vmstate_rtc;
isa->build_aml = rtc_build_aml;
device_class_set_props(dc, mc146818rtc_properties);
+ set_bit(DEVICE_CATEGORY_MISC, dc->categories);
}
static const TypeInfo mc146818rtc_info = {
--
2.31.1
- [PULL 16/23] Do not include hw/boards.h if it's not really necessary, (continued)
- [PULL 16/23] Do not include hw/boards.h if it's not really necessary, Laurent Vivier, 2021/05/03
- [PULL 09/23] hw/usb: Constify VMStateDescription, Laurent Vivier, 2021/05/03
- [PULL 03/23] hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA, Laurent Vivier, 2021/05/03
- [PULL 12/23] hw: Do not include hw/sysbus.h if it is not necessary, Laurent Vivier, 2021/05/03
- [PULL 14/23] hw: Do not include qemu/log.h if it is not necessary, Laurent Vivier, 2021/05/03
- [PULL 20/23] docs/system: Document the removal of "compat" property for POWER CPUs, Laurent Vivier, 2021/05/03
- [PULL 18/23] Do not include exec/address-spaces.h if it's not really necessary, Laurent Vivier, 2021/05/03
- [PULL 17/23] Do not include cpu.h if it's not really necessary, Laurent Vivier, 2021/05/03
- [PULL 15/23] Do not include sysemu/sysemu.h if it's not really necessary, Laurent Vivier, 2021/05/03
- [PULL 21/23] scripts: fix generation update-binfmts templates, Laurent Vivier, 2021/05/03
- [PULL 19/23] mc146818rtc: put it into the 'misc' category,
Laurent Vivier <=
- [PULL 22/23] docs: More precisely describe memory-backend-*::id's user, Laurent Vivier, 2021/05/03
- [PULL 23/23] hw/rx/rx-gdbsim: Do not accept invalid memory size, Laurent Vivier, 2021/05/03
- Re: [PULL 00/23] Trivial branch for 6.1 patches, Peter Maydell, 2021/05/05