dmaengine: move drivers/of/dma.c -> drivers/dma/of-dma.c
Vinod Koul [Tue, 12 Feb 2013 17:15:02 +0000 (09:15 -0800)]
as requested by Rob

Suggested-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

drivers/dma/Kconfig
drivers/dma/Makefile
drivers/dma/of-dma.c [moved from drivers/of/dma.c with 100% similarity]
drivers/of/Makefile

index 0b408bb..e92b5f0 100644 (file)
@@ -325,6 +325,10 @@ config DMA_ENGINE
 config DMA_VIRTUAL_CHANNELS
        tristate
 
+config DMA_OF
+       def_bool y
+       depends on OF
+
 comment "DMA Clients"
        depends on DMA_ENGINE
 
index 7428fea..c1ed644 100644 (file)
@@ -3,6 +3,8 @@ ccflags-$(CONFIG_DMADEVICES_VDEBUG) += -DVERBOSE_DEBUG
 
 obj-$(CONFIG_DMA_ENGINE) += dmaengine.o
 obj-$(CONFIG_DMA_VIRTUAL_CHANNELS) += virt-dma.o
+obj-$(CONFIG_DMA_OF) += of-dma.o
+
 obj-$(CONFIG_NET_DMA) += iovlock.o
 obj-$(CONFIG_INTEL_MID_DMAC) += intel_mid_dma.o
 obj-$(CONFIG_DMATEST) += dmatest.o
similarity index 100%
rename from drivers/of/dma.c
rename to drivers/dma/of-dma.c
index eafa107..e027f44 100644 (file)
@@ -1,4 +1,4 @@
-obj-y = base.o dma.o
+obj-y = base.o
 obj-$(CONFIG_OF_FLATTREE) += fdt.o
 obj-$(CONFIG_OF_PROMTREE) += pdt.o
 obj-$(CONFIG_OF_ADDRESS)  += address.o