PCI: rpaphp: change device tree examination
Change the criterion that RPA PCI Hotplug and RPA DLPAR use when determining the hotplug capabilities of a given device node. The "device_type" property is less consistent than "name" across PCI nodes on newer hardware. Signed-off-by: John Rose <johnrose@austin.ibm.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ac9e989187
commit
a57ed79ef1
@@ -356,7 +356,7 @@ static int __init rpaphp_init(void)
|
||||
info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
|
||||
init_MUTEX(&rpaphp_sem);
|
||||
|
||||
while ((dn = of_find_node_by_type(dn, "pci")))
|
||||
while ((dn = of_find_node_by_name(dn, "pci")))
|
||||
rpaphp_add_slot(dn);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user