powerpc/sysdev: Fix a pci section mismatch for Book E
authorChristian Engelmayer <cengelma@gmx.at>
Sun, 15 Dec 2013 18:39:26 +0000 (19:39 +0100)
committerScott Wood <scottwood@freescale.com>
Wed, 8 Jan 2014 01:23:31 +0000 (19:23 -0600)
Moved the following functions out of the __init section:

   arch/powerpc/sysdev/fsl_pci.c      : fsl_add_bridge()
   arch/powerpc/sysdev/indirect_pci.c : setup_indirect_pci()

Those are referenced by arch/powerpc/sysdev/fsl_pci.c : fsl_pci_probe() when
compiling for Book E support.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/fsl_pci.c
arch/powerpc/sysdev/indirect_pci.c

index 7066e52624686a2b1d472eaebefcc8fd3da55b16..e8be4344742b23983836e2a65264f2cbc5712da8 100644 (file)
@@ -454,7 +454,7 @@ void fsl_pcibios_fixup_bus(struct pci_bus *bus)
        }
 }
 
-int __init fsl_add_bridge(struct platform_device *pdev, int is_primary)
+int fsl_add_bridge(struct platform_device *pdev, int is_primary)
 {
        int len;
        struct pci_controller *hose;
index c6c8b526a4f6e5e68b569dd6451ad339d39cb78c..1f6c570d66d45ee88e1114b790d600f06c0bc4ec 100644 (file)
@@ -152,10 +152,8 @@ static struct pci_ops indirect_pci_ops =
        .write = indirect_write_config,
 };
 
-void __init
-setup_indirect_pci(struct pci_controller* hose,
-                  resource_size_t cfg_addr,
-                  resource_size_t cfg_data, u32 flags)
+void setup_indirect_pci(struct pci_controller *hose, resource_size_t cfg_addr,
+                       resource_size_t cfg_data, u32 flags)
 {
        resource_size_t base = cfg_addr & PAGE_MASK;
        void __iomem *mbase;