mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Geliang Tang <geliangtang@gmail.com>
To: Dan Williams <dan.j.williams@intel.com>,
	Vinod Koul <vinod.koul@intel.com>
Cc: Geliang Tang <geliangtang@gmail.com>,
	dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] dmaengine: mv_xor: use builtin_platform_driver
Date: Fri, 18 Nov 2016 22:12:26 +0800	[thread overview]
Message-ID: <f112fc1bf2afd705db856f97de9040abe38586c9.1479456513.git.geliangtang@gmail.com> (raw)
In-Reply-To: <7746cfe83ca3e96ccdf503669db3ace0e3081b7f.1479455552.git.geliangtang@gmail.com>

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/dma/mv_xor.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 23f7528..1865e3f 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -1455,12 +1455,7 @@ static struct platform_driver mv_xor_driver = {
 	},
 };
 
-
-static int __init mv_xor_init(void)
-{
-	return platform_driver_register(&mv_xor_driver);
-}
-device_initcall(mv_xor_init);
+builtin_platform_driver(mv_xor_driver);
 
 /*
 MODULE_AUTHOR("Saeed Bishara <saeed@marvell.com>");
-- 
2.9.3

  reply	other threads:[~2016-11-18 14:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18 14:12 [PATCH] ACPI / PMIC: AXP288: " Geliang Tang
2016-11-18 14:12 ` Geliang Tang [this message]
2016-11-25  6:17   ` [PATCH] dmaengine: mv_xor: " Vinod Koul
2016-11-18 14:12 ` [PATCH] gpio: etraxfs: " Geliang Tang
2016-11-22  9:14   ` Linus Walleij
2016-11-18 14:12 ` [PATCH] gpio: mb86s7x: " Geliang Tang
2016-11-22  9:16   ` Linus Walleij
2016-11-18 14:12 ` [PATCH] pinctrl: mediatek: " Geliang Tang
2016-11-18 23:53   ` Hongzhou Yang
2016-11-22  9:19   ` Linus Walleij
2016-11-18 14:12 ` [PATCH] pinctrl: stm32: " Geliang Tang
2016-11-22  8:58   ` Linus Walleij

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=f112fc1bf2afd705db856f97de9040abe38586c9.1479456513.git.geliangtang@gmail.com \
    --to=geliangtang@gmail.com \
    --cc=dan.j.williams@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vinod.koul@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®