Skip to content

Commit 8674ca3

Browse files
Li Zetaovinodkoul
authored andcommitted
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>
1 parent c05ce69 commit 8674ca3

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

drivers/dma/lgm/lgm-dma.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,9 +1732,4 @@ static struct platform_driver intel_ldma_driver = {
17321732
* registered DMA channels and DMA capabilities to clients before their
17331733
* initialization.
17341734
*/
1735-
static int __init intel_ldma_init(void)
1736-
{
1737-
return platform_driver_register(&intel_ldma_driver);
1738-
}
1739-
1740-
device_initcall(intel_ldma_init);
1735+
builtin_platform_driver(intel_ldma_driver);

0 commit comments

Comments
 (0)