Skip to content

Commit

Permalink
ftgmac100: do not link to netdev
Browse files Browse the repository at this point in the history
qdev_set_nic_properties() is already used in the Aspeed SoC level to
bind the ftgmac100 device to the netdev.

This is fixing support for multiple net devices.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
  • Loading branch information
legoater authored and jasowang committed Jul 2, 2019
1 parent 436e353 commit 59377b4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/net/ftgmac100.c
Expand Up @@ -1017,8 +1017,6 @@ static void ftgmac100_realize(DeviceState *dev, Error **errp)
sysbus_init_irq(sbd, &s->irq);
qemu_macaddr_default_if_unset(&s->conf.macaddr);

s->conf.peers.ncs[0] = nd_table[0].netdev;

s->nic = qemu_new_nic(&net_ftgmac100_info, &s->conf,
object_get_typename(OBJECT(dev)), DEVICE(dev)->id,
s);
Expand Down

0 comments on commit 59377b4

Please sign in to comment.