All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Zetao <lizetao1@huawei.com>
To: <vkoul@kernel.org>, <pliem@maxlinear.com>
Cc: <lizetao1@huawei.com>, <dmaengine@vger.kernel.org>
Subject: [PATCH -next] dmaengine: lgm: Use builtin_platform_driver macro to simplify the code
Date: Tue, 15 Aug 2023 16:02:50 +0800	[thread overview]
Message-ID: <20230815080250.1089589-1-lizetao1@huawei.com> (raw)

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>
---
 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


             reply	other threads:[~2023-08-15  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15  8:02 Li Zetao [this message]
2023-08-16  2:33 ` [PATCH -next] dmaengine: lgm: Use builtin_platform_driver macro to simplify the code Peter Harliman Liem
2023-08-21 13:51 ` Vinod Koul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230815080250.1089589-1-lizetao1@huawei.com \
    --to=lizetao1@huawei.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=pliem@maxlinear.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.