Skip to content

Commit

Permalink
[ARM] 1/4: Move include of asm/hardware.h to asm-arm/arch-*/io.h
Browse files Browse the repository at this point in the history
Including asm/hardware.h into asm/io.h can cause #define clashes
between platform specific definitions and driver local definitions.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Oct 28, 2005
1 parent 741b225 commit 7fca0aa
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 3 deletions.
2 changes: 2 additions & 0 deletions include/asm-arm/arch-aaec2000/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-cl7500/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-clps711x/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

#define __io(a) ((void __iomem *)(a))
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-ebsa110/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffff

u8 __inb8(unsigned int port);
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-ebsa285/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-epxa10db/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffff


Expand Down
2 changes: 1 addition & 1 deletion include/asm-arm/arch-h720x/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/arch/hardware.h>
#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-imx/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

#define __io(a) ((void __iomem *)(a))
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-integrator/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffff

#define __io(a) ((void __iomem *)(PCI_IO_VADDR + (a)))
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-iop3xx/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

#define __io(p) ((void __iomem *)(p))
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-ixp2000/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff
#define __mem_pci(a) (a)

Expand Down
2 changes: 1 addition & 1 deletion include/asm-arm/arch-l7200/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/arch/hardware.h>
#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-lh7a40x/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef __ASM_ARCH_IO_H
#define __ASM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/* No ISA or PCI bus on this machine. */
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-omap/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

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

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-rpc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-s3c2410/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-sa1100/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-shark/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/*
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-versatile/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H

#include <asm/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

static inline void __iomem *__io(unsigned long addr)
Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <linux/types.h>
#include <asm/byteorder.h>
#include <asm/memory.h>
#include <asm/arch/hardware.h>

/*
* ISA I/O bus memory addresses are 1:1 with the physical address.
Expand Down

0 comments on commit 7fca0aa

Please sign in to comment.