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:
Blue Swirl
2009-01-05 20:14:07 +00:00
parent ccb9456516
commit 7d6c9b0e78
3 changed files with 4 additions and 2 deletions

View File

@@ -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");