Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

PCI: Remove no_pci_devices()

After having removed the last usage of no_pci_devices(), this function
can be removed.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/b0ce592d-c34c-4e0b-b389-4e346b3a0c44@gmail.com

authored by

Heiner Kallweit and committed by
Bjorn Helgaas
d79dc408 6f468ea3

-20
-17
drivers/pci/probe.c
··· 68 68 } 69 69 70 70 /* 71 - * Some device drivers need know if PCI is initiated. 72 - * Basically, we think PCI is not initiated when there 73 - * is no device to be found on the pci_bus_type. 74 - */ 75 - int no_pci_devices(void) 76 - { 77 - struct device *dev; 78 - int no_devices; 79 - 80 - dev = bus_find_next_device(&pci_bus_type, NULL); 81 - no_devices = (dev == NULL); 82 - put_device(dev); 83 - return no_devices; 84 - } 85 - EXPORT_SYMBOL(no_pci_devices); 86 - 87 - /* 88 71 * PCI Bus Class 89 72 */ 90 73 static void release_pcibus_dev(struct device *dev)
-3
include/linux/pci.h
··· 1193 1193 /* Do NOT directly access these two variables, unless you are arch-specific PCI 1194 1194 * code, or PCI core code. */ 1195 1195 extern struct list_head pci_root_buses; /* List of all known PCI buses */ 1196 - /* Some device drivers need know if PCI is initiated */ 1197 - int no_pci_devices(void); 1198 1196 1199 1197 void pcibios_resource_survey_bus(struct pci_bus *bus); 1200 1198 void pcibios_bus_add_device(struct pci_dev *pdev); ··· 2130 2132 static inline int pci_dev_present(const struct pci_device_id *ids) 2131 2133 { return 0; } 2132 2134 2133 - #define no_pci_devices() (1) 2134 2135 #define pci_dev_put(dev) do { } while (0) 2135 2136 2136 2137 static inline void pci_set_master(struct pci_dev *dev) { }