summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-06-07 06:00:46 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-11 08:54:10 +0200
commit319367dd147fff1711c5d996fe6cddbf0d613af0 (patch)
treef43e61754df757edeef24f1d8d37ad95f5877a5b /drivers/clocksource
parentb6b050e3284f6e3ff993a8cec9d56c082451a800 (diff)
downloadbarebox-319367dd147fff1711c5d996fe6cddbf0d613af0.tar.gz
barebox-319367dd147fff1711c5d996fe6cddbf0d613af0.tar.xz
clocksource: armv8-timer: Make use of postcore_platform_driver()
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/armv8-timer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/clocksource/armv8-timer.c b/drivers/clocksource/armv8-timer.c
index 5e0b9ef3ca..918232e0e0 100644
--- a/drivers/clocksource/armv8-timer.c
+++ b/drivers/clocksource/armv8-timer.c
@@ -48,9 +48,5 @@ static struct driver_d armv8_timer_driver = {
.probe = armv8_timer_probe,
.of_compatible = DRV_OF_COMPAT(armv8_timer_dt_ids),
};
+postcore_platform_driver(armv8_timer_driver);
-static int armv8_timer_init(void)
-{
- return platform_driver_register(&armv8_timer_driver);
-}
-postcore_initcall(armv8_timer_init);