diff options
author | Li Zetao <lizetao1@huawei.com> | 2023-08-15 10:02:50 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-08-21 07:43:09 +0200 |
commit | 8674ca395003272d8215e949838ef3b27d67afde (patch) | |
tree | d01f6d364151d1cc18c421d4fe632efb8bb58c81 /drivers/dma/lgm | |
parent | dmaengine: ste_dma40: Add missing IRQ check in d40_probe (diff) | |
download | linux-8674ca395003272d8215e949838ef3b27d67afde.tar.xz linux-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/lgm')
-rw-r--r-- | drivers/dma/lgm/lgm-dma.c | 7 |
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); |