Skip to content

Commit

Permalink
dma: fix eDMA driver as a subsys_initcall
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yuan Yao authored and Vinod Koul committed Apr 16, 2014
1 parent f3817e7 commit 8edc51c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion drivers/dma/fsl-edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,17 @@ static struct platform_driver fsl_edma_driver = {
.remove = fsl_edma_remove,
};

module_platform_driver(fsl_edma_driver);
static int __init fsl_edma_init(void)
{
return platform_driver_register(&fsl_edma_driver);
}
subsys_initcall(fsl_edma_init);

static void __exit fsl_edma_exit(void)
{
platform_driver_unregister(&fsl_edma_driver);
}
module_exit(fsl_edma_exit);

MODULE_ALIAS("platform:fsl-edma");
MODULE_DESCRIPTION("Freescale eDMA engine driver");
Expand Down

0 comments on commit 8edc51c

Please sign in to comment.