gerg
2012-05-04 06:50:45 UTC
m68k: clean up and merge arch dma code
Much of the common m68k architecture dma code is the same for the MMU and
non-MMU cases. With a little cleanup of the m68knommu dma code first we
can then merge the two to end up with a single arch dma.c.
I have only tested a small number of ColdFire platforms so far, and they
all seem to check out as before. There should be no functional change for
MMU m68k systems.
---
arch/m68k/kernel/dma_mm.c | 131 -------------------------
arch/m68k/kernel/dma_no.c | 75 --------------
b/arch/m68k/include/asm/cacheflush_no.h | 32 +++++-
b/arch/m68k/kernel/dma.c | 165 +++++++++++++++++++++++++++++++-
4 files changed, 190 insertions(+), 213 deletions(-)
Much of the common m68k architecture dma code is the same for the MMU and
non-MMU cases. With a little cleanup of the m68knommu dma code first we
can then merge the two to end up with a single arch dma.c.
I have only tested a small number of ColdFire platforms so far, and they
all seem to check out as before. There should be no functional change for
MMU m68k systems.
---
arch/m68k/kernel/dma_mm.c | 131 -------------------------
arch/m68k/kernel/dma_no.c | 75 --------------
b/arch/m68k/include/asm/cacheflush_no.h | 32 +++++-
b/arch/m68k/kernel/dma.c | 165 +++++++++++++++++++++++++++++++-
4 files changed, 190 insertions(+), 213 deletions(-)