summaryrefslogtreecommitdiffstats
path: root/hw/dma
diff options
context:
space:
mode:
authorEduardo Habkost2020-09-03 00:42:47 +0200
committerEduardo Habkost2020-09-09 19:20:22 +0200
commit0056d51bf7db8bcea10fda599b79c86fb35d59c1 (patch)
tree0b3fe11cc6259252bd19ac7eb1d3a9df6de602ea /hw/dma
parentahci: Rename ICH_AHCI to ICH9_AHCI (diff)
downloadqemu-0056d51bf7db8bcea10fda599b79c86fb35d59c1.tar.gz
qemu-0056d51bf7db8bcea10fda599b79c86fb35d59c1.tar.xz
qemu-0056d51bf7db8bcea10fda599b79c86fb35d59c1.zip
esp: Rename ESP_STATE to ESP
Make the type checking macro name consistent with the TYPE_* constant. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Hervé Poussineau <hpoussin@reactos.org> Message-Id: <20200902224311.1321159-40-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/dma')
-rw-r--r--hw/dma/sparc32_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c
index bcd1626fbd..d20a5bc065 100644
--- a/hw/dma/sparc32_dma.c
+++ b/hw/dma/sparc32_dma.c
@@ -303,7 +303,7 @@ static void sparc32_espdma_device_realize(DeviceState *dev, Error **errp)
d = qdev_new(TYPE_ESP);
object_property_add_child(OBJECT(dev), "esp", OBJECT(d));
- sysbus = ESP_STATE(d);
+ sysbus = ESP(d);
esp = &sysbus->esp;
esp->dma_memory_read = espdma_memory_read;
esp->dma_memory_write = espdma_memory_write;