Skip to content

Commit

Permalink
[ARM] pxa: avoid polluting the kernel's namespace
Browse files Browse the repository at this point in the history
Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 28, 2008
1 parent 6de2c31 commit 05678a9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-pxa/ezx.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <mach/pxafb.h>
#include <mach/ohci.h>
#include <mach/i2c.h>
#include <mach/hardware.h>

#include <mach/mfp-pxa27x.h>
#include <mach/pxa-regs.h>
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-pxa/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <mach/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-pxa/smemc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <linux/io.h>
#include <linux/sysdev.h>

#include <mach/hardware.h>

#define SMEMC_PHYS_BASE (0x4A000000)
#define SMEMC_PHYS_SIZE (0x90)

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-pxa/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <asm/div64.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <mach/hardware.h>
#include <mach/pxa-regs.h>
#include <asm/mach-types.h>

Expand Down
3 changes: 2 additions & 1 deletion drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/mmc/host.h>
#include <linux/io.h>

#include <asm/dma.h>
#include <asm/io.h>
#include <asm/sizes.h>

#include <mach/hardware.h>
#include <mach/pxa-regs.h>
#include <mach/mmc.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/net/irda/pxaficp_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <asm/dma.h>
#include <mach/irda.h>
#include <mach/hardware.h>
#include <mach/pxa-regs.h>

#define IrSR_RXPL_NEG_IS_ZERO (1<<4)
Expand Down
1 change: 1 addition & 0 deletions drivers/net/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ struct smc_local {
*/
#include <linux/dma-mapping.h>
#include <asm/dma.h>
#include <mach/hardware.h>
#include <mach/pxa-regs.h>

#ifdef SMC_insl
Expand Down

0 comments on commit 05678a9

Please sign in to comment.