Skip to content

Commit 02753cb

Browse files
JochenFriedrichkumargala
authored andcommitted
[POWERPC] 8xx: Get rid of conditional includes of board specific setup
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>
1 parent 49b5154 commit 02753cb

3 files changed

Lines changed: 2 additions & 22 deletions

File tree

‎arch/powerpc/platforms/8xx/m8xx_setup.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/init.h>
1717
#include <linux/time.h>
1818
#include <linux/rtc.h>
19+
#include <linux/fsl_devices.h>
1920

2021
#include <asm/io.h>
2122
#include <asm/mpc8xx.h>
@@ -28,9 +29,7 @@
2829

2930
#include "mpc8xx.h"
3031

31-
#ifdef CONFIG_PCMCIA_M8XX
3232
struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops;
33-
#endif
3433

3534
extern int cpm_pic_init(void);
3635
extern int cpm_get_irq(void);

‎arch/powerpc/platforms/8xx/mpc885ads_setup.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <asm/fs_pd.h>
4141
#include <asm/udbg.h>
4242

43+
#include "mpc885ads.h"
4344
#include "mpc8xx.h"
4445

4546
static u32 __iomem *bcsr, *bcsr5;

‎include/asm-powerpc/mpc8xx.h‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,9 @@
44
* file that has to include MPC8xx configuration, they all include
55
* this one and the configuration switching is done here.
66
*/
7-
#ifdef __KERNEL__
87
#ifndef __CONFIG_8xx_DEFS
98
#define __CONFIG_8xx_DEFS
109

11-
12-
#ifdef CONFIG_8xx
13-
14-
#ifdef CONFIG_FADS
15-
#include <platforms/fads.h>
16-
#endif
17-
18-
#if defined(CONFIG_MPC86XADS)
19-
#include <platforms/8xx/mpc86xads.h>
20-
#endif
21-
22-
#if defined(CONFIG_MPC885ADS)
23-
#include <platforms/8xx/mpc885ads.h>
24-
#endif
25-
26-
#ifdef CONFIG_PCMCIA_M8XX
2710
extern struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops;
28-
#endif
2911

30-
#endif /* CONFIG_8xx */
3112
#endif /* __CONFIG_8xx_DEFS */
32-
#endif /* __KERNEL__ */

0 commit comments

Comments
 (0)