ast2400: use the 'aspeed' model for the ftgmac100 nic
PATCH v2 1/1 ast2400: use the 'aspeed' model for the ftgmac100 nic
From: Cédric Le Goater <[email protected]>
Signed-off-by Cédric Le Goater <[email protected]>
--- hw/arm/ast2400.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
hw/arm/ast2400.c +4 -1
@@ -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 ;
Signature · 1 line
2.9.2.597.g66765a4
Disregard this, there was some fat-fingering. Sorry for the noise.
Andrew
Quoted 23 lines · Andrew Jeffery
From: Cédric Le Goater <[email protected]>
Signed-off-by Cédric Le Goater <[email protected]>---
hw/arm/ast2400.c | 5 ++++-1 file changed, 4 insertions(+), 1 deletion(-)hw/arm/ast2400.c +0
-0@@ -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;