summaryrefslogtreecommitdiffstats
path: root/include/hw/sparc
diff options
context:
space:
mode:
authorMark Cave-Ayland2020-09-26 16:02:12 +0200
committerMark Cave-Ayland2020-10-28 08:59:25 +0100
commitbce83ed9981bd8920499921e9931f46db56b77ff (patch)
tree2e561ebd05b9530aebdb546eede062fd07499d45 /include/hw/sparc
parentsparc32-dma: use object_initialize_child() for espdma and ledma child objects (diff)
downloadqemu-bce83ed9981bd8920499921e9931f46db56b77ff.tar.gz
qemu-bce83ed9981bd8920499921e9931f46db56b77ff.tar.xz
qemu-bce83ed9981bd8920499921e9931f46db56b77ff.zip
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>
Diffstat (limited to 'include/hw/sparc')
-rw-r--r--include/hw/sparc/sparc32_dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/sparc/sparc32_dma.h b/include/hw/sparc/sparc32_dma.h
index 3348a725f0..80d69cbba2 100644
--- a/include/hw/sparc/sparc32_dma.h
+++ b/include/hw/sparc/sparc32_dma.h
@@ -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"