mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH 07/10] gpio: clps711x: Use coredevice_platform_driver() macro
Date: Wed, 19 Dec 2018 11:04:00 +0300	[thread overview]
Message-ID: <20181219080403.13737-7-shc_work@mail.ru> (raw)
In-Reply-To: <20181219080403.13737-1-shc_work@mail.ru>

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/gpio/gpio-clps711x.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index d3d669713..946da533b 100644
--- a/drivers/gpio/gpio-clps711x.c
+++ b/drivers/gpio/gpio-clps711x.c
@@ -74,9 +74,4 @@ static struct driver_d clps711x_gpio_driver = {
 	.probe		= clps711x_gpio_probe,
 	.of_compatible	= DRV_OF_COMPAT(clps711x_gpio_dt_ids),
 };
-
-static __init int clps711x_gpio_register(void)
-{
-	return platform_driver_register(&clps711x_gpio_driver);
-}
-coredevice_initcall(clps711x_gpio_register);
+coredevice_platform_driver(clps711x_gpio_driver);
-- 
2.13.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2018-12-19  8:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-19  8:03 [PATCH 01/10] serial: clps711x: Change compatible string Alexander Shiyan
2018-12-19  8:03 ` [PATCH 02/10] serial: clps711x: Switch to SPDX identifier Alexander Shiyan
2019-01-04 10:46   ` Roland Hieber
2019-01-04 10:48     ` Roland Hieber
2019-01-08 10:45       ` Alexander Shiyan
2018-12-19  8:03 ` [PATCH 03/10] serial: clps711x: Use DIV_ROUND_CLOSEST() for baudrate calculation Alexander Shiyan
2018-12-19  8:03 ` [PATCH 04/10] serial: clps711x: Determine device name from device tree Alexander Shiyan
2018-12-19  8:03 ` [PATCH 05/10] gpio: clps711x: Change compatible string Alexander Shiyan
2018-12-19  8:03 ` [PATCH 06/10] gpio: clps711x: Switch to SPDX identifier Alexander Shiyan
2018-12-19  8:04 ` Alexander Shiyan [this message]
2018-12-19  8:04 ` [PATCH 08/10] clocksource: clps711x: Add devicetree support Alexander Shiyan
2018-12-19  8:04 ` [PATCH 09/10] clocksource: clps711x: Switch to SPDX identifier Alexander Shiyan
2018-12-19  8:04 ` [PATCH 10/10] clocksource: clps711x: Use coredevice_platform_driver() macro Alexander Shiyan
2018-12-20  7:57 ` [PATCH 01/10] serial: clps711x: Change compatible string Sascha Hauer

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=20181219080403.13737-7-shc_work@mail.ru \
    --to=shc_work@mail.ru \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox