Skip to content

Commit 8edc51c

Browse files
Yuan YaoVinod Koul
authored andcommitted
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 <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent f3817e7 commit 8edc51c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/dma/fsl-edma.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,17 @@ static struct platform_driver fsl_edma_driver = {
968968
.remove = fsl_edma_remove,
969969
};
970970

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);
972982

973983
MODULE_ALIAS("platform:fsl-edma");
974984
MODULE_DESCRIPTION("Freescale eDMA engine driver");

0 commit comments

Comments
 (0)