summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2026-04-03 00:18:15 +0200
committerBjorn Helgaas <bhelgaas@google.com>2026-04-07 14:46:04 -0500
commitd79dc408deb6c192adbad7893ee0c22d50826511 (patch)
tree92a64d3cb29a4f5fdbd79cf35ae9c7100e61ef1c /include/linux
parent6f468ea360f0a6a1e45854afbc3019842ed891a8 (diff)
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
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 1c270f1d5123..482dd8460dd9 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1193,8 +1193,6 @@ extern const struct bus_type pci_bus_type;
/* Do NOT directly access these two variables, unless you are arch-specific PCI
* code, or PCI core code. */
extern struct list_head pci_root_buses; /* List of all known PCI buses */
-/* Some device drivers need know if PCI is initiated */
-int no_pci_devices(void);
void pcibios_resource_survey_bus(struct pci_bus *bus);
void pcibios_bus_add_device(struct pci_dev *pdev);
@@ -2132,7 +2130,6 @@ static inline struct pci_dev *pci_get_base_class(unsigned int class,
static inline int pci_dev_present(const struct pci_device_id *ids)
{ return 0; }
-#define no_pci_devices() (1)
#define pci_dev_put(dev) do { } while (0)
static inline void pci_set_master(struct pci_dev *dev) { }