[PATCH v2] ast2400: use the 'aspeed' model for the ftgmac100 nic
Andrew Jeffery
andrew at aj.id.au
Thu Jul 28 10:32:27 AEST 2016
From: Cédric Le Goater <clg at kaod.org>
Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
hw/arm/ast2400.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hw/arm/ast2400.c b/hw/arm/ast2400.c
index e8ca5a9e26e3..72dd6a29d4e6 100644
--- a/hw/arm/ast2400.c
+++ b/hw/arm/ast2400.c
@@ -239,7 +239,10 @@ static void ast2400_realize(DeviceState *dev, Error **errp)
/* Net */
qdev_set_nic_properties(DEVICE(&s->ftgmac100), &nd_table[0]);
- object_property_set_bool(OBJECT(&s->ftgmac100), true, "realized", &err);
+ object_property_set_bool(OBJECT(&s->ftgmac100), true, "aspeed", &err);
+ object_property_set_bool(OBJECT(&s->ftgmac100), true, "realized",
+ &local_err);
+ error_propagate(&err, local_err);
if (err) {
error_propagate(errp, err);
return;
--
2.9.2.597.g66765a4
More information about the openbmc
mailing list