summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/kvx_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/kvx_timer.c')
-rw-r--r--drivers/clocksource/kvx_timer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/clocksource/kvx_timer.c b/drivers/clocksource/kvx_timer.c
index 4125ddbee0..eaa8f63b1e 100644
--- a/drivers/clocksource/kvx_timer.c
+++ b/drivers/clocksource/kvx_timer.c
@@ -21,9 +21,10 @@ static struct clocksource kvx_clksrc = {
.read = kvx_pm_read,
.mask = CLOCKSOURCE_MASK(64),
.shift = 0,
+ .priority = 70,
};
-static int kvx_timer_probe(struct device_d *dev)
+static int kvx_timer_probe(struct device *dev)
{
struct clk *clk;
uint32_t clk_freq;
@@ -48,11 +49,12 @@ static struct of_device_id kvx_timer_dt_ids[] = {
{ .compatible = "kalray,kvx-core-timer", },
{ }
};
+MODULE_DEVICE_TABLE(of, kvx_timer_dt_ids);
-static struct driver_d kvx_timer_driver = {
+static struct driver kvx_timer_driver = {
.name = "kvx-timer",
.probe = kvx_timer_probe,
.of_compatible = DRV_OF_COMPAT(kvx_timer_dt_ids),
};
-device_platform_driver(kvx_timer_driver);
+postcore_platform_driver(kvx_timer_driver);