Commit 7a3f8de5a3c36e5fde130cae74a06663b59837ae

Authored by Russell King
1 parent 7124cb96ca

ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver

The includes in the pxa2xx_cm_x2xx PCMCIA driver are rather random;
the driver doesn't require anything from these headers except the
cpu_is_xxx() macros which come from another include.

The concern is that it's getting these definitions via mach/system.h,
which is supposed to only be included by arch/arm/kernel/process.c.
As this header is scheduled for cleanup (and elimination) keeping
the status quo will cause build errors.  So lets fix properly and
independent of the future work.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/pcmcia/pxa2xx_cm_x2xx.c
... ... @@ -12,9 +12,8 @@
12 12  
13 13 #include <linux/module.h>
14 14  
15   -#include <asm/system.h>
16 15 #include <asm/mach-types.h>
17   -#include <mach/system.h>
  16 +#include <mach/hardware.h>
18 17  
19 18 int cmx255_pcmcia_init(void);
20 19 int cmx270_pcmcia_init(void);