diff options
author | Cédric Le Goater <clg@kaod.org> | 2016-12-27 14:59:27 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-12-27 14:59:27 +0000 |
commit | bd673bd8aba8b9f316c3c95f7be872087bb55695 (patch) | |
tree | 3c87099087c6d21bedd3a5ee0036aeb6849e092a /hw | |
parent | 4c3386f42102652f2b75e135cf09c9ea31cdec88 (diff) | |
download | qemu-bd673bd8aba8b9f316c3c95f7be872087bb55695.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c index 3a6b91f14b..82e27129a9 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()); } |