Skip to content

Commit

Permalink
ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Nov 5, 2011
1 parent 7124cb9 commit 7a3f8de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pcmcia/pxa2xx_cm_x2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@

#include <linux/module.h>

#include <asm/system.h>
#include <asm/mach-types.h>
#include <mach/system.h>
#include <mach/hardware.h>

int cmx255_pcmcia_init(void);
int cmx270_pcmcia_init(void);
Expand Down

0 comments on commit 7a3f8de

Please sign in to comment.