diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-10-01 04:43:11 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-10-01 04:43:11 -0400 |
commit | 049aa166b112beab77b9a2f8d9caa03b74843eab (patch) | |
tree | eac8104b1271c7ff2c3bc3f4f0a49089e5fc4cd4 /arch | |
parent | 749c84966c990092da20203a80e0749b614c79a6 (diff) |
sh64: Move consistent DMA routines to arch/sh64/mm/.
The consistent DMA stuff was evolved from the old PCI DMA mapping
functions. As this has been overhauled, it's something that is
used by the generic DMA mapping code, and thus, has no intrinsic
PCI dependence.
Move the routines somewhere more sensible (same place as sh), and
fix up the build for CONFIG_PCI=n in the process.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh64/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/sh64/mm/Makefile | 4 | ||||
-rw-r--r-- | arch/sh64/mm/consistent.c (renamed from arch/sh64/kernel/pci-dma.c) | 0 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh64/kernel/Makefile b/arch/sh64/kernel/Makefile index 5816657c079c..e3467bda6167 100644 --- a/arch/sh64/kernel/Makefile +++ b/arch/sh64/kernel/Makefile | |||
@@ -25,7 +25,7 @@ obj-$(CONFIG_SH_DMA) += dma.o | |||
25 | obj-$(CONFIG_SH_FPU) += fpu.o | 25 | obj-$(CONFIG_SH_FPU) += fpu.o |
26 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | 26 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
27 | obj-$(CONFIG_KALLSYMS) += unwind.o | 27 | obj-$(CONFIG_KALLSYMS) += unwind.o |
28 | obj-$(CONFIG_PCI) += pci-dma.o pcibios.o | 28 | obj-$(CONFIG_PCI) += pcibios.o |
29 | obj-$(CONFIG_MODULES) += module.o | 29 | obj-$(CONFIG_MODULES) += module.o |
30 | 30 | ||
31 | ifeq ($(CONFIG_PCI),y) | 31 | ifeq ($(CONFIG_PCI),y) |
diff --git a/arch/sh64/mm/Makefile b/arch/sh64/mm/Makefile index ff19378ac90a..d0e813632480 100644 --- a/arch/sh64/mm/Makefile +++ b/arch/sh64/mm/Makefile | |||
@@ -13,7 +13,8 @@ | |||
13 | # unless it's something special (ie not a .c file). | 13 | # unless it's something special (ie not a .c file). |
14 | # | 14 | # |
15 | 15 | ||
16 | obj-y := init.o fault.o ioremap.o extable.o cache.o tlbmiss.o tlb.o | 16 | obj-y := cache.o consistent.o extable.o fault.o init.o ioremap.o \ |
17 | tlbmiss.o tlb.o | ||
17 | 18 | ||
18 | obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o | 19 | obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o |
19 | 20 | ||
@@ -41,4 +42,3 @@ CFLAGS_tlbmiss.o += -ffixed-r7 \ | |||
41 | -ffixed-r41 -ffixed-r42 -ffixed-r43 \ | 42 | -ffixed-r41 -ffixed-r42 -ffixed-r43 \ |
42 | -ffixed-r60 -ffixed-r61 -ffixed-r62 \ | 43 | -ffixed-r60 -ffixed-r61 -ffixed-r62 \ |
43 | -fomit-frame-pointer | 44 | -fomit-frame-pointer |
44 | |||
diff --git a/arch/sh64/kernel/pci-dma.c b/arch/sh64/mm/consistent.c index 8875a2a40da7..8875a2a40da7 100644 --- a/arch/sh64/kernel/pci-dma.c +++ b/arch/sh64/mm/consistent.c | |||