diff options
author | Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com> | 2015-10-28 18:50:53 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-11-06 19:29:22 -0500 |
commit | 50230713b63941f4b6b562eea0834f751aa0801e (patch) | |
tree | 6f76ae7c4bab2736323c3404e6bf292e559d466d /include/linux/of_pci.h | |
parent | 37efbe20fb19cee43d95b7ba9e54d5d0b00c0d67 (diff) |
PCI: OF: Move of_pci_dma_configure() to pci_dma_configure()
This patch move of_pci_dma_configure() to a more generic
pci_dma_configure(), which can be extended by non-OF code (e.g. ACPI).
This has no functional change.
Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Acked-by: Rob Herring <robh+dt@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/of_pci.h')
-rw-r--r-- | include/linux/of_pci.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h index 29fd3fe1c035..ce0e5abeb454 100644 --- a/include/linux/of_pci.h +++ b/include/linux/of_pci.h | |||
@@ -16,7 +16,6 @@ int of_pci_get_devfn(struct device_node *np); | |||
16 | int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); | 16 | int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); |
17 | int of_pci_parse_bus_range(struct device_node *node, struct resource *res); | 17 | int of_pci_parse_bus_range(struct device_node *node, struct resource *res); |
18 | int of_get_pci_domain_nr(struct device_node *node); | 18 | int of_get_pci_domain_nr(struct device_node *node); |
19 | void of_pci_dma_configure(struct pci_dev *pci_dev); | ||
20 | #else | 19 | #else |
21 | static inline int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq) | 20 | static inline int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq) |
22 | { | 21 | { |
@@ -51,8 +50,6 @@ of_get_pci_domain_nr(struct device_node *node) | |||
51 | { | 50 | { |
52 | return -1; | 51 | return -1; |
53 | } | 52 | } |
54 | |||
55 | static inline void of_pci_dma_configure(struct pci_dev *pci_dev) { } | ||
56 | #endif | 53 | #endif |
57 | 54 | ||
58 | #if defined(CONFIG_OF_ADDRESS) | 55 | #if defined(CONFIG_OF_ADDRESS) |