summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2018-12-19 11:04:03 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-20 08:57:31 +0100
commitc767e84d410009125b814d1d1be9545ed1f083ae (patch)
treecb336635d40d78a8d610e9107d8278f598b305de /drivers/clocksource
parent841e744cf14c20e60c7ed849dfbcb1da800cf93f (diff)
downloadbarebox-c767e84d410009125b814d1d1be9545ed1f083ae.tar.gz
barebox-c767e84d410009125b814d1d1be9545ed1f083ae.tar.xz
clocksource: 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/clocksource')
-rw-r--r--drivers/clocksource/clps711x.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/clocksource/clps711x.c b/drivers/clocksource/clps711x.c
index bb5378edcf..a99147f30c 100644
--- a/drivers/clocksource/clps711x.c
+++ b/drivers/clocksource/clps711x.c
@@ -55,9 +55,4 @@ static struct driver_d clps711x_cs_driver = {
.probe = clps711x_cs_probe,
.of_compatible = DRV_OF_COMPAT(clps711x_timer_dt_ids),
};
-
-static __init int clps711x_cs_init(void)
-{
- return platform_driver_register(&clps711x_cs_driver);
-}
-coredevice_initcall(clps711x_cs_init);
+coredevice_platform_driver(clps711x_cs_driver);