]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] 8xx: Get rid of conditional includes of board specific setup
authorJochen Friedrich <jochen@scram.de>
Thu, 24 Jan 2008 15:19:01 +0000 (16:19 +0100)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jan 2008 14:31:04 +0000 (08:31 -0600)
Directly include mpc885ads.h from mpc885ads_setup.c. Now we can get rid
of the arch dependent includes in mpc8xx.h.

Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/8xx/m8xx_setup.c
arch/powerpc/platforms/8xx/mpc885ads_setup.c
include/asm-powerpc/mpc8xx.h

index 1867a07d0faa5f4ea690b9a12c0e55f5a25f0b5b..184f998d1be2e25da5f3d09c2d526683ded8741c 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/init.h>
 #include <linux/time.h>
 #include <linux/rtc.h>
+#include <linux/fsl_devices.h>
 
 #include <asm/io.h>
 #include <asm/mpc8xx.h>
@@ -28,9 +29,7 @@
 
 #include "mpc8xx.h"
 
-#ifdef CONFIG_PCMCIA_M8XX
 struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops;
-#endif
 
 extern int cpm_pic_init(void);
 extern int cpm_get_irq(void);
index bdceb57adc7a4e7b265a26fe490ba37688001d95..3be115e525fc08f23f25354991cc7a6edb8eb64e 100644 (file)
@@ -40,6 +40,7 @@
 #include <asm/fs_pd.h>
 #include <asm/udbg.h>
 
+#include "mpc885ads.h"
 #include "mpc8xx.h"
 
 static u32 __iomem *bcsr, *bcsr5;
index 2be014b6f57c52efce9b6a6faa214c791f6514c3..98f3c4f17328e40bf9833d78319d1cf7ef6f7423 100644 (file)
@@ -4,29 +4,9 @@
  * file that has to include MPC8xx configuration, they all include
  * this one and the configuration switching is done here.
  */
-#ifdef __KERNEL__
 #ifndef __CONFIG_8xx_DEFS
 #define __CONFIG_8xx_DEFS
 
-
-#ifdef CONFIG_8xx
-
-#ifdef CONFIG_FADS
-#include <platforms/fads.h>
-#endif
-
-#if defined(CONFIG_MPC86XADS)
-#include <platforms/8xx/mpc86xads.h>
-#endif
-
-#if defined(CONFIG_MPC885ADS)
-#include <platforms/8xx/mpc885ads.h>
-#endif
-
-#ifdef CONFIG_PCMCIA_M8XX
 extern struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops;
-#endif
 
-#endif /* CONFIG_8xx */
 #endif /* __CONFIG_8xx_DEFS */
-#endif /* __KERNEL__ */