mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Use field compat from pci_dev_t to fill "compatible" property. (Laurent Vivier)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@353 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -185,6 +185,9 @@ static void ob_pci_add_properties(pci_addr addr, const pci_dev_t *pci_dev,
|
||||
push_str("model");
|
||||
fword("property");
|
||||
}
|
||||
if (pci_dev->compat)
|
||||
set_property(dev, "compatible",
|
||||
pci_dev->compat, pci_compat_len(pci_dev));
|
||||
push_str(pci_dev->name);
|
||||
fword("encode-string");
|
||||
push_str("class");
|
||||
|
||||
Reference in New Issue
Block a user