mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
sparc32-espdma: use object_initialize_child() for esp child object
Store the child object directly within the sparc32-espdma object rather than using link properties. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200926140216.7368-4-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
bce83ed998
commit
d19265eaf5
2 changed files with 8 additions and 9 deletions
|
@ -28,7 +28,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(ESPDMADeviceState, SPARC32_ESPDMA_DEVICE)
|
|||
struct ESPDMADeviceState {
|
||||
DMADeviceState parent_obj;
|
||||
|
||||
SysBusESPState *esp;
|
||||
SysBusESPState esp;
|
||||
};
|
||||
|
||||
#define TYPE_SPARC32_LEDMA_DEVICE "sparc32-ledma"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue