aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zetao <[email protected]>2023-08-15 16:02:50 +0800
committerVinod Koul <[email protected]>2023-08-21 11:13:09 +0530
commit8674ca395003272d8215e949838ef3b27d67afde (patch)
treed01f6d364151d1cc18c421d4fe632efb8bb58c81
parentc05ce6907b3d6e148b70f0bb5eafd61dcef1ddc1 (diff)
dmaengine: lgm: Use builtin_platform_driver macro to simplify the code
Use the builtin_platform_driver macro to simplify the code, which is the same as declaring with device_initcall(). Signed-off-by: Li Zetao <[email protected]> Acked-by: Peter Harliman Liem <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
-rw-r--r--drivers/dma/lgm/lgm-dma.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/dma/lgm/lgm-dma.c b/drivers/dma/lgm/lgm-dma.c
index 1709d159af7e..4117c7b67e9c 100644
--- a/drivers/dma/lgm/lgm-dma.c
+++ b/drivers/dma/lgm/lgm-dma.c
@@ -1732,9 +1732,4 @@ static struct platform_driver intel_ldma_driver = {
* registered DMA channels and DMA capabilities to clients before their
* initialization.
*/
-static int __init intel_ldma_init(void)
-{
- return platform_driver_register(&intel_ldma_driver);
-}
-
-device_initcall(intel_ldma_init);
+builtin_platform_driver(intel_ldma_driver);