dmaengine: move link order
authorLinus Walleij <linus.walleij@stericsson.com>
Wed, 18 May 2011 12:18:57 +0000 (14:18 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 19 May 2011 11:26:26 +0000 (16:56 +0530)
Move the dmaengine subsystem up early in the drivers Makefile so
DMA is made available early to all drivers, just like e.g.
regulators. Now even regulators can use DMA on the same initlevel.
As a result we can bump the ste_dma40 and coh901318 dmaengine
drivers down one initlevel to subsys_init().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/Makefile
drivers/dma/coh901318.c
drivers/dma/ste_dma40.c

index 3f135b6fb014b4adeee44e4c7cef342bcbe95a4b..e68423da897a9f6ac052ddd4d558762dd46c5722 100644 (file)
@@ -17,6 +17,9 @@ obj-$(CONFIG_SFI)             += sfi/
 # was used and do nothing if so
 obj-$(CONFIG_PNP)              += pnp/
 obj-$(CONFIG_ARM_AMBA)         += amba/
+# Many drivers will want to use DMA so this has to be made available
+# really early.
+obj-$(CONFIG_DMA_ENGINE)       += dma/
 
 obj-$(CONFIG_VIRTIO)           += virtio/
 obj-$(CONFIG_XEN)              += xen/
@@ -92,7 +95,6 @@ obj-$(CONFIG_EISA)            += eisa/
 obj-y                          += lguest/
 obj-$(CONFIG_CPU_FREQ)         += cpufreq/
 obj-$(CONFIG_CPU_IDLE)         += cpuidle/
-obj-$(CONFIG_DMA_ENGINE)       += dma/
 obj-$(CONFIG_MMC)              += mmc/
 obj-$(CONFIG_MEMSTICK)         += memstick/
 obj-$(CONFIG_NEW_LEDS)         += leds/
index 00deabd9a04b2222734d024c4ea02a7138e05ea4..b5a318916d0586363196c7780d00d8e7e329bf59 100644 (file)
@@ -1610,7 +1610,7 @@ int __init coh901318_init(void)
 {
        return platform_driver_probe(&coh901318_driver, coh901318_probe);
 }
-arch_initcall(coh901318_init);
+subsys_initcall(coh901318_init);
 
 void __exit coh901318_exit(void)
 {
index 65d2535d12ef4f53fa0fc2ac0d25c9317d09c12c..5d054bb908e50882714bec40cc93cbfb4e08304b 100644 (file)
@@ -2962,4 +2962,4 @@ static int __init stedma40_init(void)
 {
        return platform_driver_probe(&d40_driver, d40_probe);
 }
-arch_initcall(stedma40_init);
+subsys_initcall(stedma40_init);