Skip to contentSkip to conversation

make pci_scan_device() static

PATCH William Lee Irwin III 1 participant 1 message Feb 23, 2003 PCI

lore
Share & tools
lore
#0 lore raw

Make pci_scan_device() static, as it's not called outside probe.c

$ grep -nr pci_scan_device .
./drivers/pci/probe.c:430:struct pci_dev * __devinit pci_scan_device(struct pci_dev *temp)
./drivers/pci/probe.c:484:              dev = pci_scan_device(temp);

===== drivers/pci/probe.c 1.29 vs edited =====

drivers/pci/probe.c +1 -1
@@ -427,7 +427,7 @@
  * Read the config data for a PCI device, sanity-check it
  * and fill in the dev structure...
  */
-struct pci_dev * __devinit pci_scan_device(struct pci_dev *temp)
+static struct pci_dev * __devinit pci_scan_device(struct pci_dev *temp)
 {
 	struct pci_dev *dev;
 	u32 l;