summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-clint.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/timer-clint.c')
-rw-r--r--drivers/clocksource/timer-clint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/clocksource/timer-clint.c b/drivers/clocksource/timer-clint.c
index 412ce3e1e9..f264eb4cee 100644
--- a/drivers/clocksource/timer-clint.c
+++ b/drivers/clocksource/timer-clint.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2020 Western Digital Corporation or its affiliates.
*
@@ -60,7 +60,7 @@ static struct clocksource clint_clocksource = {
.priority = 200,
};
-static int clint_timer_init_dt(struct device_d* dev)
+static int clint_timer_init_dt(struct device * dev)
{
struct resource *iores;
@@ -85,8 +85,9 @@ static struct of_device_id timer_clint_dt_ids[] = {
{ .compatible = "sifive,clint0" },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, timer_clint_dt_ids);
-static struct driver_d clint_timer_driver = {
+static struct driver clint_timer_driver = {
.name = "clint-timer",
.probe = clint_timer_init_dt,
.of_compatible = timer_clint_dt_ids,