ppc32: mpc85xx: set pcibios_fixup only #ifdef CONFIG_PCI

Dale Farnsworth dale at farnsworth.org
Sat Feb 18 10:37:33 EST 2006


From: Dale Farnsworth <dale at farnsworth.org>

Signed-off-by: Dale Farnsworth <dale at farnsworth.org>
---

 arch/ppc/platforms/85xx/mpc85xx_cds_common.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6.10/arch/ppc/platforms/85xx/mpc85xx_cds_common.c
===================================================================
--- linux-2.6.10.orig/arch/ppc/platforms/85xx/mpc85xx_cds_common.c
+++ linux-2.6.10/arch/ppc/platforms/85xx/mpc85xx_cds_common.c
@@ -456,9 +456,6 @@ mpc85xx_cds_setup_arch(void)
 	mtspr(SPRN_DBCR0, (DBCR0_IDM));
 	mtspr(SPRN_DBSR, 0xffffffff);
 #endif
-
- 	/* VIA IDE configuration */
-         ppc_md.pcibios_fixup = mpc85xx_cds_pcibios_fixup;
  
 #ifdef CONFIG_CPM2
 	cpm2_reset();
@@ -480,6 +477,9 @@ mpc85xx_cds_setup_arch(void)
         loops_per_jiffy = freq / HZ;
 
 #ifdef CONFIG_PCI
+ 	/* VIA IDE configuration */
+         ppc_md.pcibios_fixup = mpc85xx_cds_pcibios_fixup;
+
         /* setup PCI host bridges */
         mpc85xx_setup_hose();
 #endif



More information about the Linuxppc-embedded mailing list