mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/gpio/aspeed: Fix definition of AspeedGPIOClass
AspeedGPIOClass's parent is SysBusDeviceClass rather than SysBusDevice.
This isn't catastrophic only because sizeof(SysBusDevice) >
sizeof(SysBusDeviceClass).
Fixes: 4b7f956862
("hw/gpio: Add basic Aspeed GPIO model for AST2400 and AST2500")
Closes: https://lists.gnu.org/archive/html/qemu-devel/2025-06/msg00586.html
Suggested-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Message-ID: <20250606092406.229833-4-zhenzhong.duan@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
747a7ee374
commit
2f8f01ae3d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ typedef struct AspeedGPIOReg {
|
|||
} AspeedGPIOReg;
|
||||
|
||||
struct AspeedGPIOClass {
|
||||
SysBusDevice parent_obj;
|
||||
SysBusDeviceClass parent_class;
|
||||
const GPIOSetProperties *props;
|
||||
uint32_t nr_gpio_pins;
|
||||
uint32_t nr_gpio_sets;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue