Commit 8674ca39 authored by Li Zetao's avatar Li Zetao Committed by Vinod Koul
Browse files

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: default avatarLi Zetao <lizetao1@huawei.com>
Acked-by: default avatarPeter Harliman Liem <pliem@maxlinear.com>
Link: https://lore.kernel.org/r/20230815080250.1089589-1-lizetao1@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c05ce690
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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);