Skip to content

Commit

Permalink
[ARM] 3/4: Remove asm/hardware.h from SA1100 io.h
Browse files Browse the repository at this point in the history
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 c6b8fda commit 674c045
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions arch/arm/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/vmalloc.h>

#include <asm/cacheflush.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/tlbflush.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/mtd/maps/sa1100-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/mtd/partitions.h>
#include <linux/mtd/concat.h>

#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/sizes.h>
#include <asm/mach/flash.h>
Expand Down
7 changes: 0 additions & 7 deletions include/asm-arm/arch-sa1100/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@
#define UNCACHEABLE_ADDR 0xfa050000


/*
* We requires absolute addresses i.e. (PCMCIA_IO_0_BASE + 0x3f8) for
* in*()/out*() macros to be usable for all cases.
*/
#define PCIO_BASE 0


/*
* SA1100 internal I/O mappings
*
Expand Down
6 changes: 5 additions & 1 deletion include/asm-arm/arch-sa1100/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
* We don't actually have real ISA nor PCI buses, but there is so many
* drivers out there that might just work if we fake them...
*/
#define __io(a) ((void __iomem *)(PCIO_BASE + (a)))
static inline void __iomem *__io(unsigned long addr)
{
return (void __iomem *)addr;
}
#define __io(a) __io(a)
#define __mem_pci(a) (a)
#define __mem_isa(a) (a)

Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/arch-sa1100/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
*/
#include <linux/config.h>
#include <asm/hardware.h>

static inline void arch_idle(void)
{
Expand Down

0 comments on commit 674c045

Please sign in to comment.