: PCI Err: RPA-PHP janitoring
PATCH 11/13 : PCI Err: RPA-PHP janitoring
pci-err-11-rpaphp-janitor.patch
Remove dead code.
Signed-off-by Linas Vepstas <[email protected]>
drivers/pci/hotplug/rpaphp.h renamed from drivers/pci/hotplug/rpaphp.h.linas-orig +0 -1
@@ -113,7 +113,6 @@ extern int rpaphp_enable_pci_slot(structextern int register_pci_slot (struct slot *slot);extern int rpaphp_unconfig_pci_adapter (struct slot *slot);extern int rpaphp_get_pci_adapter_status (struct slot *slot,int is_init,u8 * value); -extern struct hotplug_slot *rpaphp_find_hotplug_slot (struct pci_dev *dev);/* rpaphp_core.c */ extern int rpaphp_add_slot (struct device_node *dn);
drivers/pci/hotplug/rpaphp_pci.c renamed from drivers/pci/hotplug/rpaphp_pci.c.linas-orig +0 -33
@@ -503,36 +503,3 @@ exit:return retval; } -struct hotplug_slot *rpaphp_find_hotplug_slot (struct pci_dev *dev) -{ -struct list_head *tmp, *n; -struct slot *slot; - -list_for_each_safe (tmp, n, &rpaphp_slot_head) { -struct pci_bus *bus; -struct list_head *ln; - - slot = list_entry(tmp, struct slot, rpaphp_slot_list); -if (slot->bridge ==NULL ) { -if (slot->dev_type ==PCI_DEV ) { -printk (KERN_WARNING "PCI slot missing bridge %s %s \n" , - slot->name, slot->location); - } -continue ; - } - - bus = slot->bridge->subordinate; -if (!bus) { -continue ;/* should never happen? */ - } -for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) { -struct pci_dev *pdev =pci_dev_b (ln); -if (pdev == dev) -return slot->hotplug_slot; - } - } - -return NULL ; -} - -EXPORT_SYMBOL_GPL (rpaphp_find_hotplug_slot);