summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorLi Zetao <lizetao1@huawei.com>2023-08-15 16:02:50 +0800
committerVinod Koul <vkoul@kernel.org>2023-08-21 11:13:09 +0530
commit8674ca395003272d8215e949838ef3b27d67afde (patch)
treed01f6d364151d1cc18c421d4fe632efb8bb58c81 /drivers/dma
parentc05ce6907b3d6e148b70f0bb5eafd61dcef1ddc1 (diff)
downloadlinux-stable-8674ca395003272d8215e949838ef3b27d67afde.tar.gz
linux-stable-8674ca395003272d8215e949838ef3b27d67afde.tar.bz2
linux-stable-8674ca395003272d8215e949838ef3b27d67afde.zip
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 <lizetao1@huawei.com> Acked-by: Peter Harliman Liem <pliem@maxlinear.com> Link: https://lore.kernel.org/r/20230815080250.1089589-1-lizetao1@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-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);