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

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.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c05ce690
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment