|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH] allow for name property in pci devices. |
Date: | Thu, 18 Jun 2009 11:54:36 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 06/18/09 09:33, Mark McLoughlin wrote:
- pci_dev = do_pci_register_device(pci_dev, bus, "FIXME", devfn, + name = qdev_get_prop_ptr(qdev, "name"); + + pci_dev = do_pci_register_device(pci_dev, bus, name, devfn, NULL, NULL);//FIXME:config_read, config_write);Why not just use base->name here?
+1While we are at it: Do we need the name field in PCIDevice the first place then? Well, maybe better keep it until all pci devices are moved over to qdev.
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |