diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2014-01-10 22:46:34 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-13 18:57:29 (GMT) |
commit | e2760c54a4f5131867bf1b35d59169267d35d3d0 (patch) | |
tree | f76aab513a0cb1c791364bcbab093d57705ffd6d /drivers/pci | |
parent | 4ab44676064baeb6c7d807c0f627e07d29ce48e0 (diff) | |
download | linux-e2760c54a4f5131867bf1b35d59169267d35d3d0.tar.xz |
PCI: Remove unused alloc_pci_dev()
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/probe.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 38e403d..a4f53b6 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -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) { |