Skip to content

Commit

Permalink
x86: cleanup ioremap includes
Browse files Browse the repository at this point in the history
Get rid of the douplicate define of ISA_START/END_ADDRESS and use the
same headers in 32 and 64 bit code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent 91eebf4 commit 3cbd09e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
15 changes: 7 additions & 8 deletions arch/x86/mm/ioremap_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
* (C) Copyright 1995 1996 Linus Torvalds
*/

#include <linux/vmalloc.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/io.h>
#include <asm/fixmap.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>

#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
#include <asm/e820.h>
#include <asm/fixmap.h>
#include <asm/pgtable.h>

#define ISA_START_ADDRESS 0xa0000
#define ISA_END_ADDRESS 0x100000
#include <asm/tlbflush.h>

/*
* Remap an arbitrary physical address space into the kernel virtual
Expand Down
13 changes: 6 additions & 7 deletions arch/x86/mm/ioremap_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
* (C) Copyright 1995 1996 Linus Torvalds
*/

#include <linux/vmalloc.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>

#include <asm/pgalloc.h>
#include <asm/fixmap.h>
#include <asm/tlbflush.h>
#include <asm/cacheflush.h>
#include <asm/proto.h>
#include <asm/e820.h>
#include <asm/fixmap.h>
#include <asm/pgtable.h>
#include <asm/tlbflush.h>

unsigned long __phys_addr(unsigned long x)
{
Expand Down

0 comments on commit 3cbd09e

Please sign in to comment.