summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2018-12-19 11:04:00 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-20 08:57:31 +0100
commitc487131bd42b8524ef21bde9396ec0e52c215180 (patch)
tree98dce3af3f0ee13d8342128172b4a7a05abb0814 /drivers/gpio
parentfde4a230c1069368dcdefad8cfdf4af6951640f1 (diff)
downloadbarebox-c487131bd42b8524ef21bde9396ec0e52c215180.tar.gz
barebox-c487131bd42b8524ef21bde9396ec0e52c215180.tar.xz
gpio: clps711x: Use coredevice_platform_driver() macro
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-clps711x.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index 3a7e6b6c20..44f40c36e4 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);