mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
sparc32-ledma: use object_initialize_child() for lance child object
Store the child object directly within the sparc32-ledma 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-3-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
1f10fd53cb
commit
bce83ed998
2 changed files with 9 additions and 7 deletions
|
@ -37,7 +37,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(LEDMADeviceState, SPARC32_LEDMA_DEVICE)
|
|||
struct LEDMADeviceState {
|
||||
DMADeviceState parent_obj;
|
||||
|
||||
SysBusPCNetState *lance;
|
||||
SysBusPCNetState lance;
|
||||
};
|
||||
|
||||
#define TYPE_SPARC32_DMA "sparc32-dma"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue