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>
This commit is contained in:
Li Zetao 2023-08-15 16:02:50 +08:00 committed by Vinod Koul
parent c05ce6907b
commit 8674ca3950

View File

@ -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);