Skip to content

Commit

Permalink
[ARM] iop3xx: 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 in mach/io.h, mach/memory.h and mach/timex.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 47190a3 commit 0114cb4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-iop32x/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef __IO_H
#define __IO_H

#include <mach/hardware.h>
#include <asm/hardware/iop3xx.h>

extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
unsigned int mtype);
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-iop32x/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#ifndef __MEMORY_H
#define __MEMORY_H

#include <mach/hardware.h>

/*
* Physical DRAM offset.
*/
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-iop32x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

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

static inline void arch_idle(void)
{
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-iop32x/include/mach/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
*
* IOP32x architecture timex specifications
*/

#include <mach/hardware.h>

#define CLOCK_TICK_RATE (100 * HZ)
2 changes: 1 addition & 1 deletion arch/arm/mach-iop33x/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef __IO_H
#define __IO_H

#include <mach/hardware.h>
#include <asm/hardware/iop3xx.h>

extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
unsigned int mtype);
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-iop33x/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#ifndef __MEMORY_H
#define __MEMORY_H

#include <mach/hardware.h>

/*
* Physical DRAM offset.
*/
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-iop33x/include/mach/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
*
* IOP3xx architecture timex specifications
*/

#include <mach/hardware.h>

#define CLOCK_TICK_RATE (100 * HZ)

0 comments on commit 0114cb4

Please sign in to comment.