aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2016-12-27 14:59:27 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-12-27 14:59:27 +0000
commitbd673bd8aba8b9f316c3c95f7be872087bb55695 (patch)
tree3c87099087c6d21bedd3a5ee0036aeb6849e092a /hw
parent4c3386f42102652f2b75e135cf09c9ea31cdec88 (diff)
downloadqemu-bd673bd8aba8b9f316c3c95f7be872087bb55695.zip
qemu-bd673bd8aba8b9f316c3c95f7be872087bb55695.tar.gz
qemu-bd673bd8aba8b9f316c3c95f7be872087bb55695.tar.bz2
aspeed: attach the second SPI controller object to the SoC
Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Message-id: 1480434248-27138-6-git-send-email-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/arm/aspeed_soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c
index 3a6b91f..82e2712 100644
--- a/hw/arm/aspeed_soc.c
+++ b/hw/arm/aspeed_soc.c
@@ -124,7 +124,7 @@ static void aspeed_soc_init(Object *obj)
for (i = 0; i < sc->info->spis_num; i++) {
object_initialize(&s->spi[i], sizeof(s->spi[i]),
sc->info->spi_typename[i]);
- object_property_add_child(obj, "spi", OBJECT(&s->spi[i]), NULL);
+ object_property_add_child(obj, "spi[*]", OBJECT(&s->spi[i]), NULL);
qdev_set_parent_bus(DEVICE(&s->spi[i]), sysbus_get_default());
}