|
@@ -63,7 +63,7 @@ static struct device_node *find_php_slot_pci_node(char *drc_name,
|
|
|
char *type;
|
|
|
int rc;
|
|
|
|
|
|
- while ((np = of_find_node_by_type(np, "pci"))) {
|
|
|
+ while ((np = of_find_node_by_name(np, "pci"))) {
|
|
|
rc = rpaphp_get_drc_props(np, NULL, &name, &type, NULL);
|
|
|
if (rc == 0)
|
|
|
if (!strcmp(drc_name, name) && !strcmp(drc_type, type))
|