]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ftgmac100: do not link to netdev
authorCédric Le Goater <clg@kaod.org>
Mon, 20 May 2019 18:11:11 +0000 (20:11 +0200)
committerJason Wang <jasowang@redhat.com>
Tue, 2 Jul 2019 02:21:06 +0000 (10:21 +0800)
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>
hw/net/ftgmac100.c

index eb760472e54cb0ec614482d0f6a530eb7f2aa76f..d2cded5e942ebac614e1bf9b371bc876aad12dee 100644 (file)
@@ -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);