mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
qdev: don't access name through info
We already have a QOM interface for this so let's use it. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
30fbb9fc7c
commit
f79f2bfc6a
28 changed files with 44 additions and 44 deletions
|
@ -1182,7 +1182,7 @@ static int pci_e1000_init(PCIDevice *pci_dev)
|
|||
d->eeprom_data[EEPROM_CHECKSUM_REG] = checksum;
|
||||
|
||||
d->nic = qemu_new_nic(&net_e1000_info, &d->conf,
|
||||
qdev_get_info(&d->dev.qdev)->name, d->dev.qdev.id, d);
|
||||
object_get_typename(OBJECT(d)), d->dev.qdev.id, d);
|
||||
|
||||
qemu_format_nic_info_str(&d->nic->nc, macaddr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue