Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: rpaphp: remove print_slot_pci_funcs()

The debug function print_slot_pci_funcs() is a large wrapper
around two debug print statements. Just invoke these directly.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: 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>

authored by

Linas Vepstas and committed by
Greg Kroah-Hartman
307ff12e 03a66755

+7 -16
+7 -16
drivers/pci/hotplug/rpaphp_pci.c
··· 64 64 return rc; 65 65 } 66 66 67 - static void print_slot_pci_funcs(struct pci_bus *bus) 68 - { 69 - struct device_node *dn; 70 - struct pci_dev *dev; 71 - 72 - dn = pci_bus_to_OF_node(bus); 73 - if (!dn) 74 - return; 75 - 76 - dbg("%s: pci_devs of slot[%s]\n", __FUNCTION__, dn->full_name); 77 - list_for_each_entry (dev, &bus->devices, bus_list) 78 - dbg("\t%s\n", pci_name(dev)); 79 - return; 80 - } 81 - 82 67 static void set_slot_name(struct slot *slot) 83 68 { 84 69 struct pci_bus *bus = slot->bus; ··· 123 138 if (list_empty(&bus->devices)) 124 139 pcibios_add_pci_devices(bus); 125 140 126 - print_slot_pci_funcs(bus); 127 141 if (!list_empty(&bus->devices)) { 128 142 info->adapter_status = CONFIGURED; 129 143 slot->state = CONFIGURED; 144 + } 145 + 146 + if (debug) { 147 + struct pci_dev *dev; 148 + dbg("%s: pci_devs of slot[%s]\n", __FUNCTION__, slot->dn->full_name); 149 + list_for_each_entry (dev, &bus->devices, bus_list) 150 + dbg("\t%s\n", pci_name(dev)); 130 151 } 131 152 } 132 153