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 <[email protected]> Acked-by: Peter Harliman Liem <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent c05ce69 commit 8674ca3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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)