diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2014-01-10 23:46:34 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-13 19:57:29 +0100 |
commit | e2760c54a4f5131867bf1b35d59169267d35d3d0 (patch) | |
tree | f76aab513a0cb1c791364bcbab093d57705ffd6d /include | |
parent | PCI: Remove unused pci_renumber_slot() (diff) | |
download | linux-e2760c54a4f5131867bf1b35d59169267d35d3d0.tar.xz linux-e2760c54a4f5131867bf1b35d59169267d35d3d0.zip |
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 'include')
-rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 3a3e513d8a50..bd31f51d2c8f 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -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) |