summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-01-15 13:42:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-15 13:42:53 +0100
commitd34f898fad18ecb5c4351f17cdbeeff8297eb1be (patch)
treefcb3cf18df93a5a5b006cf6c2198707828f2874f /drivers/clocksource
parentc3d6b6c7104b3f43f32c9e19ae32e568b8dd53f4 (diff)
parentc767e84d410009125b814d1d1be9545ed1f083ae (diff)
downloadbarebox-d34f898fad18ecb5c4351f17cdbeeff8297eb1be.tar.gz
barebox-d34f898fad18ecb5c4351f17cdbeeff8297eb1be.tar.xz
Merge branch 'for-next/clps711x'
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/clps711x.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/drivers/clocksource/clps711x.c b/drivers/clocksource/clps711x.c
index f6399e9300..a99147f30c 100644
--- a/drivers/clocksource/clps711x.c
+++ b/drivers/clocksource/clps711x.c
@@ -1,11 +1,5 @@
-/*
- * Copyright (C) 2013 Alexander Shiyan <shc_work@mail.ru>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- */
+// SPDX-License-Identifier: GPL-2.0+
+/* Author: Alexander Shiyan <shc_work@mail.ru> */
#include <common.h>
#include <clock.h>
@@ -51,13 +45,14 @@ static int clps711x_cs_probe(struct device_d *dev)
return init_clock(&clps711x_cs);
}
+static __maybe_unused struct of_device_id clps711x_timer_dt_ids[] = {
+ { .compatible = "cirrus,ep7209-timer", },
+ { }
+};
+
static struct driver_d clps711x_cs_driver = {
.name = "clps711x-cs",
.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);