From: Cédric Le Goater Date: Tue, 27 Dec 2016 14:59:27 +0000 (+0000) Subject: aspeed: attach the second SPI controller object to the SoC X-Git-Tag: v2.9.0-rc0~173^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd673bd8aba8b9f316c3c95f7be872087bb55695;p=thirdparty%2Fqemu.git aspeed: attach the second SPI controller object to the SoC Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery Message-id: 1480434248-27138-6-git-send-email-clg@kaod.org Signed-off-by: Peter Maydell --- diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c index 3a6b91f14b4..82e27129a90 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()); }