aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_pci.c
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2008-05-23 09:41:02 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-06-02 15:44:25 -0400
commit692d1037e6914a8a32a7a9fba416684c75c7efca (patch)
tree571903a8386f41245cead7ff42d4ff886c0d7b4b /arch/powerpc/sysdev/fsl_pci.c
parent741edc494978bc2770e891b8cfadbca3246a3d1a (diff)
[POWERPC] fsl_msi: few (mostly cosmetic) fixes
This patch fixes few cosmetic issues, also removes unused function, makes some functions static and reduces #ifdef count. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_pci.c')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 52a5f7f41b4a..489ca5a397b1 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -106,15 +106,15 @@ void __init setup_pci_cmd(struct pci_controller *hose)
106 } 106 }
107} 107}
108 108
109#ifdef CONFIG_PCI_MSI 109static void __init setup_pci_pcsrbar(struct pci_controller *hose)
110void __init setup_pci_pcsrbar(struct pci_controller *hose)
111{ 110{
111#ifdef CONFIG_PCI_MSI
112 phys_addr_t immr_base; 112 phys_addr_t immr_base;
113 113
114 immr_base = get_immrbase(); 114 immr_base = get_immrbase();
115 early_write_config_dword(hose, 0, 0, PCI_BASE_ADDRESS_0, immr_base); 115 early_write_config_dword(hose, 0, 0, PCI_BASE_ADDRESS_0, immr_base);
116}
117#endif 116#endif
117}
118 118
119static int fsl_pcie_bus_fixup; 119static int fsl_pcie_bus_fixup;
120 120
@@ -222,9 +222,7 @@ int __init fsl_add_bridge(struct device_node *dev, int is_primary)
222 setup_pci_atmu(hose, &rsrc); 222 setup_pci_atmu(hose, &rsrc);
223 223
224 /* Setup PEXCSRBAR */ 224 /* Setup PEXCSRBAR */
225#ifdef CONFIG_PCI_MSI
226 setup_pci_pcsrbar(hose); 225 setup_pci_pcsrbar(hose);
227#endif
228 return 0; 226 return 0;
229} 227}
230 228