PCI: Make of_irq_parse_pci() static
authorRob Herring <robh@kernel.org>
Thu, 4 Jan 2018 21:12:15 +0000 (15:12 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Jan 2018 14:48:20 +0000 (08:48 -0600)
Now that the DT PCI code is merged into drivers/pci, of_irq_parse_pci() can
be static.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Frank Rowand <frowand.list@gmail.com>
drivers/pci/of.c
include/linux/of_pci.h

index 79441a556f6f576eb7c939069e8db48f01333d32..e81835bdf4fa8f835fcb6c953b1df17743ef2ae9 100644 (file)
@@ -480,7 +480,7 @@ int of_pci_map_rid(struct device_node *np, u32 rid,
  * PCI tree until an device-node is found, at which point it will finish
  * resolving using the OF tree walking.
  */
-int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq)
+static int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq)
 {
        struct device_node *dn, *ppnode;
        struct pci_dev *ppdev;
@@ -574,7 +574,6 @@ err:
        }
        return rc;
 }
-EXPORT_SYMBOL_GPL(of_irq_parse_pci);
 
 /**
  * of_irq_parse_and_map_pci() - Decode a PCI IRQ from the device tree and map to a VIRQ
index f0e129e848eae85e0c6861a52ee688a9d6c5612e..88865e0ebf4dd551f8c41bd9fbc0f78d7899b552 100644 (file)
@@ -10,7 +10,6 @@ struct of_phandle_args;
 struct device_node;
 
 #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PCI)
-int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq);
 struct device_node *of_pci_find_child_device(struct device_node *parent,
                                             unsigned int devfn);
 int of_pci_get_devfn(struct device_node *np);
@@ -23,11 +22,6 @@ int of_pci_map_rid(struct device_node *np, u32 rid,
                   const char *map_name, const char *map_mask_name,
                   struct device_node **target, u32 *id_out);
 #else
-static inline int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq)
-{
-       return 0;
-}
-
 static inline struct device_node *of_pci_find_child_device(struct device_node *parent,
                                             unsigned int devfn)
 {