]> Pileus Git - ~andy/linux/commitdiff
PCI: Remove unused alloc_pci_dev()
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 10 Jan 2014 22:46:34 +0000 (15:46 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Jan 2014 18:57:29 +0000 (11:57 -0700)
My philosophy is unused code is dead code.  And dead code is subject to bit
rot and is a likely source of bugs.  Use it or lose it.

This removes this unused and deprecated interface:

    alloc_pci_dev()

[bhelgaas: split to separate patch]
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
include/linux/pci.h

index 38e403dddf6e0e07166585e226d47f2793bd86f8..a4f53b677185419096aad8a0df68e4e6a8d5b069 100644 (file)
@@ -1242,12 +1242,6 @@ struct pci_dev *pci_alloc_dev(struct pci_bus *bus)
 }
 EXPORT_SYMBOL(pci_alloc_dev);
 
-struct pci_dev *alloc_pci_dev(void)
-{
-       return pci_alloc_dev(NULL);
-}
-EXPORT_SYMBOL(alloc_pci_dev);
-
 bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l,
                                 int crs_timeout)
 {
index 3a3e513d8a50416bdd48951b53ef922d3362b13f..bd31f51d2c8f4ec82b73f8f644eacbeff8a1d3e6 100644 (file)
@@ -375,7 +375,6 @@ static inline struct pci_dev *pci_physfn(struct pci_dev *dev)
 }
 
 struct pci_dev *pci_alloc_dev(struct pci_bus *bus);
-struct pci_dev * __deprecated alloc_pci_dev(void);
 
 #define        to_pci_dev(n) container_of(n, struct pci_dev, dev)
 #define for_each_pci_dev(d) while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL)