aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/ioremap.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-06-25 00:19:03 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 07:10:28 -0400
commit4583ed514ea9ac844a6eb02d33120beaedf6837f (patch)
tree9df2d1e1a5d1726303f761954593defc483e2d20 /arch/x86/mm/ioremap.c
parentbb23e403e5162765dabe3dc78646724753d6359b (diff)
x86, 64-bit: unify early_ioremap
The 32-bit early_ioremap will work equally well for 64-bit, so just use it. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: xen-devel <xen-devel@lists.xensource.com> Cc: Stephen Tweedie <sct@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/ioremap.c')
-rw-r--r--arch/x86/mm/ioremap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
index 0561fde56a51..092b3d72498c 100644
--- a/arch/x86/mm/ioremap.c
+++ b/arch/x86/mm/ioremap.c
@@ -381,8 +381,6 @@ void unxlate_dev_mem_ptr(unsigned long phys, void *addr)
381 return; 381 return;
382} 382}
383 383
384#ifdef CONFIG_X86_32
385
386int __initdata early_ioremap_debug; 384int __initdata early_ioremap_debug;
387 385
388static int __init early_ioremap_debug_setup(char *str) 386static int __init early_ioremap_debug_setup(char *str)
@@ -483,6 +481,7 @@ static void __init __early_set_fixmap(enum fixed_addresses idx,
483 return; 481 return;
484 } 482 }
485 pte = early_ioremap_pte(addr); 483 pte = early_ioremap_pte(addr);
484
486 if (pgprot_val(flags)) 485 if (pgprot_val(flags))
487 set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, flags)); 486 set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, flags));
488 else 487 else
@@ -624,5 +623,3 @@ void __this_fixmap_does_not_exist(void)
624{ 623{
625 WARN_ON(1); 624 WARN_ON(1);
626} 625}
627
628#endif /* CONFIG_X86_32 */