Re: [PATCH -next] dmaengine: lgm: Use builtin_platform_driver macro to simplify the code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/8/2023 4:03 pm, Li Zetao wrote:
> Use the builtin_platform_driver macro to simplify the code, which is the
> same as declaring with device_initcall().

Acked-by: Peter Harliman Liem <pliem@xxxxxxxxxxxxx>

> 
> Signed-off-by: Li Zetao <lizetao1@xxxxxxxxxx>
> ---
>  drivers/dma/lgm/lgm-dma.c | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/drivers/dma/lgm/lgm-dma.c b/drivers/dma/lgm/lgm-dma.c
> index 1709d159af7e..4117c7b67e9c 100644
> --- a/drivers/dma/lgm/lgm-dma.c
> +++ b/drivers/dma/lgm/lgm-dma.c
> @@ -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);
> --
> 2.34.1
> 
> 





[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux