]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
mc146818rtc: put it into the 'misc' category
authorGan Qixin <ganqixin@huawei.com>
Mon, 30 Nov 2020 08:36:23 +0000 (16:36 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 2 May 2021 15:24:51 +0000 (17:24 +0200)
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

index 36a2dbf62f9c47ddff5dc243979d89ea82263318..3d2d3854e71680abd3ae6e084078250d040d4dc7 100644 (file)
@@ -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 = {