diff options
author | Yuan Yao <yao.yuan@freescale.com> | 2014-04-04 00:27:55 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-04-16 02:33:47 -0400 |
commit | 8edc51c197b8f409bef7b21755254e6f3ce7ed23 (patch) | |
tree | 170f41e9d14ef5358fdd3fc20414974751ff4369 | |
parent | f3817e777ca3a089381a5b2370fbb869c3bcce6f (diff) |
dma: fix eDMA driver as a subsys_initcall
Because of some driver base on DMA, changed the initcall order as subsys_initcall.
Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/fsl-edma.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/dma/fsl-edma.c b/drivers/dma/fsl-edma.c index 381e793184ba..b396a7fb53ab 100644 --- a/drivers/dma/fsl-edma.c +++ b/drivers/dma/fsl-edma.c | |||
@@ -968,7 +968,17 @@ static struct platform_driver fsl_edma_driver = { | |||
968 | .remove = fsl_edma_remove, | 968 | .remove = fsl_edma_remove, |
969 | }; | 969 | }; |
970 | 970 | ||
971 | module_platform_driver(fsl_edma_driver); | 971 | static int __init fsl_edma_init(void) |
972 | { | ||
973 | return platform_driver_register(&fsl_edma_driver); | ||
974 | } | ||
975 | subsys_initcall(fsl_edma_init); | ||
976 | |||
977 | static void __exit fsl_edma_exit(void) | ||
978 | { | ||
979 | platform_driver_unregister(&fsl_edma_driver); | ||
980 | } | ||
981 | module_exit(fsl_edma_exit); | ||
972 | 982 | ||
973 | MODULE_ALIAS("platform:fsl-edma"); | 983 | MODULE_ALIAS("platform:fsl-edma"); |
974 | MODULE_DESCRIPTION("Freescale eDMA engine driver"); | 984 | MODULE_DESCRIPTION("Freescale eDMA engine driver"); |