diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-14 12:48:15 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:01 +0100 |
commit | 97cfb5e430f95b58c09a9da21b60196f32475beb (patch) | |
tree | 52944b2a6da385718aae5b3a52004eee58ba900d /hw | |
parent | eba245659bfef2f325538c94f6c682f69d582fcf (diff) | |
download | qemu-97cfb5e430f95b58c09a9da21b60196f32475beb.zip qemu-97cfb5e430f95b58c09a9da21b60196f32475beb.tar.gz qemu-97cfb5e430f95b58c09a9da21b60196f32475beb.tar.bz2 |
hw/isa: Remove empty ISADeviceClass structure
ISADeviceClass is an empty class and just increase code
complexity. Remove it, directly embedding DeviceClass in
classes expanding TYPE_ISA_DEVICE.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20230215161641.32663-19-philmd@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/isa/isa-bus.c | 1 | ||||
-rw-r--r-- | hw/rtc/m48t59-isa.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c index f155b80..845686c 100644 --- a/hw/isa/isa-bus.c +++ b/hw/isa/isa-bus.c @@ -213,7 +213,6 @@ static const TypeInfo isa_device_type_info = { .parent = TYPE_DEVICE, .instance_size = sizeof(ISADevice), .abstract = true, - .class_size = sizeof(ISADeviceClass), .class_init = isa_device_class_init, }; diff --git a/hw/rtc/m48t59-isa.c b/hw/rtc/m48t59-isa.c index e61f7ec..5bb46f2 100644 --- a/hw/rtc/m48t59-isa.c +++ b/hw/rtc/m48t59-isa.c @@ -47,7 +47,7 @@ struct M48txxISAState { }; struct M48txxISADeviceClass { - ISADeviceClass parent_class; + DeviceClass parent_class; M48txxInfo info; }; |