diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2014-01-10 17:46:34 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-13 13:57:29 -0500 |
commit | e2760c54a4f5131867bf1b35d59169267d35d3d0 (patch) | |
tree | f76aab513a0cb1c791364bcbab093d57705ffd6d | |
parent | 4ab44676064baeb6c7d807c0f627e07d29ce48e0 (diff) |
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>
-rw-r--r-- | drivers/pci/probe.c | 6 | ||||
-rw-r--r-- | include/linux/pci.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 38e403dddf6e..a4f53b677185 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) | |||
1242 | } | 1242 | } |
1243 | EXPORT_SYMBOL(pci_alloc_dev); | 1243 | EXPORT_SYMBOL(pci_alloc_dev); |
1244 | 1244 | ||
1245 | struct pci_dev *alloc_pci_dev(void) | ||
1246 | { | ||
1247 | return pci_alloc_dev(NULL); | ||
1248 | } | ||
1249 | EXPORT_SYMBOL(alloc_pci_dev); | ||
1250 | |||
1251 | bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, | 1245 | bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, |
1252 | int crs_timeout) | 1246 | int crs_timeout) |
1253 | { | 1247 | { |
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) | |||
375 | } | 375 | } |
376 | 376 | ||
377 | struct pci_dev *pci_alloc_dev(struct pci_bus *bus); | 377 | struct pci_dev *pci_alloc_dev(struct pci_bus *bus); |
378 | struct pci_dev * __deprecated alloc_pci_dev(void); | ||
379 | 378 | ||
380 | #define to_pci_dev(n) container_of(n, struct pci_dev, dev) | 379 | #define to_pci_dev(n) container_of(n, struct pci_dev, dev) |
381 | #define for_each_pci_dev(d) while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL) | 380 | #define for_each_pci_dev(d) while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL) |