dmaengine: at_hdmac: use subsys_initcall instead of module_init
authorEric Xu <hong.xu@atmel.com>
Wed, 12 Jan 2011 14:39:08 +0000 (15:39 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 15 Jan 2011 00:54:43 +0000 (16:54 -0800)
Use subsys_initcall instead of module_init in order to keep DMA engine rolling
before other peripheral drivers.

Signed-off-by: Eric Xu <hong.xu@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/at_hdmac.c

index c6ddd6ffb8f3e092696988a48d867b3e98773c15..e25c4ad01062cdf3eb8d26fc6ccda4374d1be0da 100644 (file)
@@ -1209,7 +1209,7 @@ static int __init at_dma_init(void)
 {
        return platform_driver_probe(&at_dma_driver, at_dma_probe);
 }
-module_init(at_dma_init);
+subsys_initcall(at_dma_init);
 
 static void __exit at_dma_exit(void)
 {