Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173445
b: refs/heads/master
c: 94c2851
h: refs/heads/master
i:
  173443: 7055266
v: v3
  • Loading branch information
Paul Mundt committed Oct 27, 2009
1 parent e1de2e9 commit 9e3ea89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c978ca3194a4002407a85b15122f793efc8616b
refs/heads/master: 94c285108e4551157ecc1b8156921712138fa860
2 changes: 0 additions & 2 deletions trunk/arch/sh/mm/consistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ EXPORT_SYMBOL(dma_ops);
static int __init dma_init(void)
{
dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);

no_iommu_init();
return 0;
}
fs_initcall(dma_init);
Expand Down
11 changes: 11 additions & 0 deletions trunk/arch/sh/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/pagemap.h>
#include <linux/percpu.h>
#include <linux/io.h>
#include <linux/dma-mapping.h>
#include <asm/mmu_context.h>
#include <asm/tlb.h>
#include <asm/cacheflush.h>
Expand Down Expand Up @@ -186,11 +187,21 @@ void __init paging_init(void)
set_fixmap_nocache(FIX_UNCACHED, __pa(&__uncached_start));
}

/*
* Early initialization for any I/O MMUs we might have.
*/
static void __init iommu_init(void)
{
no_iommu_init();
}

void __init mem_init(void)
{
int codesize, datasize, initsize;
int nid;

iommu_init();

num_physpages = 0;
high_memory = NULL;

Expand Down

0 comments on commit 9e3ea89

Please sign in to comment.