mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
[POWERPC] Add support for PCI-Express nodes in the device tree
This adds support to recognize the PCIe device_type "pciex" and made the portdrv buildable. Signed-off-by: Jake Moilanen <moilanen@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
0f582bc1f2
commit
bb53bb3dcb
3 changed files with 6 additions and 2 deletions
|
@ -313,7 +313,9 @@ unsigned long __init find_and_init_phbs(void)
|
|||
for (node = of_get_next_child(root, NULL);
|
||||
node != NULL;
|
||||
node = of_get_next_child(root, node)) {
|
||||
if (node->type == NULL || strcmp(node->type, "pci") != 0)
|
||||
|
||||
if (node->type == NULL || (strcmp(node->type, "pci") != 0 &&
|
||||
strcmp(node->type, "pciex") != 0))
|
||||
continue;
|
||||
|
||||
phb = pcibios_alloc_controller(node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue