summaryrefslogtreecommitdiffstats
path: root/hw/arm/aspeed_ast2600.c
diff options
context:
space:
mode:
authorCédric Le Goater2022-03-08 09:18:11 +0100
committerCédric Le Goater2022-03-08 09:18:11 +0100
commit8d99713bba88c2dff8d62a9d7370d026428335dc (patch)
tree5fb8c58b4f867e5aa610e3f64ac01414bfa17bb5 /hw/arm/aspeed_ast2600.c
parentaspeed: Rework aspeed_board_init_flashes() interface (diff)
downloadqemu-8d99713bba88c2dff8d62a9d7370d026428335dc.tar.gz
qemu-8d99713bba88c2dff8d62a9d7370d026428335dc.tar.xz
qemu-8d99713bba88c2dff8d62a9d7370d026428335dc.zip
aspeed/smc: Remove 'num_cs' field
It is not used anymore. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220307071856.1410731-4-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/arm/aspeed_ast2600.c')
-rw-r--r--hw/arm/aspeed_ast2600.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c
index 21cd3342c5..c1e15e3773 100644
--- a/hw/arm/aspeed_ast2600.c
+++ b/hw/arm/aspeed_ast2600.c
@@ -163,7 +163,6 @@ static void aspeed_soc_ast2600_init(Object *obj)
snprintf(typename, sizeof(typename), "aspeed.fmc-%s", socname);
object_initialize_child(obj, "fmc", &s->fmc, typename);
- object_property_add_alias(obj, "num-cs", OBJECT(&s->fmc), "num-cs");
for (i = 0; i < sc->spis_num; i++) {
snprintf(typename, sizeof(typename), "aspeed.spi%d-%s", i + 1, socname);
@@ -383,7 +382,6 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp)
for (i = 0; i < sc->spis_num; i++) {
object_property_set_link(OBJECT(&s->spi[i]), "dram",
OBJECT(s->dram_mr), &error_abort);
- object_property_set_int(OBJECT(&s->spi[i]), "num-cs", 1, &error_abort);
if (!sysbus_realize(SYS_BUS_DEVICE(&s->spi[i]), errp)) {
return;
}