[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231031034854.115624-1-bumyong.lee@samsung.com>
Date: Tue, 31 Oct 2023 12:48:54 +0900
From: Bumyong Lee <bumyong.lee@...sung.com>
To: Vinod Koul <vkoul@...nel.org>,
Philipp Zabel <p.zabel@...gutronix.de>
Cc: dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org,
Bumyong Lee <bumyong.lee@...sung.com>
Subject: [PATCH] dmaengine: pl330: set subsys_initcall level
module_amba_driver is macro for module_init/exit
module_init is device_initcall level when it configured
with built-in driver.
pl330 is dmaengine driver. because slave drivers depend on
dmaengine drivers, dmaengine drivers is more appropriate
subsys_initcall.
Signed-off-by: Bumyong Lee <bumyong.lee@...sung.com>
---
drivers/dma/pl330.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 3cf0b38387ae..4970830d7ab0 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -3270,7 +3270,17 @@ static struct amba_driver pl330_driver = {
.remove = pl330_remove,
};
-module_amba_driver(pl330_driver);
+static int __init pl330_init(void)
+{
+ return amba_driver_register(&pl330_driver);
+}
+subsys_initcall(pl330_init);
+
+static void __exit pl330_exit(void)
+{
+ amba_driver_unregister(&pl330_driver);
+}
+module_exit(pl330_exit);
MODULE_AUTHOR("Jaswinder Singh <jassisinghbrar@...il.com>");
MODULE_DESCRIPTION("API Driver for PL330 DMAC");
--
2.42.0
Powered by blists - more mailing lists