diff options
author | Kelsey Skunberg <skunberg.kelsey@gmail.com> | 2019-07-24 17:38:48 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-07-30 08:45:56 -0500 |
commit | 621f7e354fd8f99db0e3f7a0e8cda238caee9f3a (patch) | |
tree | f55974ea7f23fe2adb666be3c74fca6f6bb439a8 /drivers/pci/pci.h | |
parent | ac6c26da29c12fa511c877c273ed5c939dc9e96c (diff) | |
download | linux-621f7e354fd8f99db0e3f7a0e8cda238caee9f3a.tar.gz linux-621f7e354fd8f99db0e3f7a0e8cda238caee9f3a.tar.bz2 linux-621f7e354fd8f99db0e3f7a0e8cda238caee9f3a.zip |
PCI: Make pci_set_of_node(), etc private
These interfaces:
void pci_set_of_node(struct pci_dev *dev);
void pci_release_of_node(struct pci_dev *dev);
void pci_set_bus_of_node(struct pci_bus *bus);
void pci_release_bus_of_node(struct pci_bus *bus);
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/20190724233848.73327-12-skunberg.kelsey@gmail.com
Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 8935fc1ff446..61bbfd611140 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -592,6 +592,10 @@ struct device_node; int of_pci_parse_bus_range(struct device_node *node, struct resource *res); int of_get_pci_domain_nr(struct device_node *node); int of_pci_get_max_link_speed(struct device_node *node); +void pci_set_of_node(struct pci_dev *dev); +void pci_release_of_node(struct pci_dev *dev); +void pci_set_bus_of_node(struct pci_bus *bus); +void pci_release_bus_of_node(struct pci_bus *bus); #else static inline int @@ -611,6 +615,11 @@ of_pci_get_max_link_speed(struct device_node *node) { return -EINVAL; } + +static inline void pci_set_of_node(struct pci_dev *dev) { } +static inline void pci_release_of_node(struct pci_dev *dev) { } +static inline void pci_set_bus_of_node(struct pci_bus *bus) { } +static inline void pci_release_bus_of_node(struct pci_bus *bus) { } #endif /* CONFIG_OF */ #if defined(CONFIG_OF_ADDRESS) |