Skip to content

Commit

Permalink
mc146818rtc: put it into the 'misc' category
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ganqx authored and vivier committed May 2, 2021
1 parent ee86213 commit 76d79cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/rtc/mc146818rtc.c
Expand Up @@ -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 = {
Expand Down

0 comments on commit 76d79cf

Please sign in to comment.