Skip to content

Commit 975e1ac

Browse files
Kelsey Skunbergbjorn-helgaas
authored andcommitted
PCI: Make pci_get_host_bridge_device(), pci_put_host_bridge_device() private
These interfaces: struct device *pci_get_host_bridge_device(struct pci_dev *dev); void pci_put_host_bridge_device(struct device *dev); are only used in drivers/pci/ and do not need to be seen by the rest of the kernel. Move them to drivers/pci/pci.h so they're private to the PCI subsystem. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kelsey Skunberg <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 669696e commit 975e1ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/pci/pci.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ enum pci_bar_type {
243243
pci_bar_mem64, /* A 64-bit memory BAR */
244244
};
245245

246+
struct device *pci_get_host_bridge_device(struct pci_dev *dev);
247+
void pci_put_host_bridge_device(struct device *dev);
248+
246249
int pci_configure_extended_tags(struct pci_dev *dev, void *ign);
247250
bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl,
248251
int crs_timeout);

include/linux/pci.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,6 @@ static inline struct pci_dev *pci_upstream_bridge(struct pci_dev *dev)
644644
return dev->bus->self;
645645
}
646646

647-
struct device *pci_get_host_bridge_device(struct pci_dev *dev);
648-
void pci_put_host_bridge_device(struct device *dev);
649-
650647
#ifdef CONFIG_PCI_MSI
651648
static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev)
652649
{

0 commit comments

Comments
 (0)