diff options
Diffstat (limited to 'drivers/clocksource/arm_architected_timer.c')
-rw-r--r-- | drivers/clocksource/arm_architected_timer.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/drivers/clocksource/arm_architected_timer.c b/drivers/clocksource/arm_architected_timer.c index 3ca7dfd17d..9a1f2d2b79 100644 --- a/drivers/clocksource/arm_architected_timer.c +++ b/drivers/clocksource/arm_architected_timer.c @@ -1,16 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2018 Sascha Hauer <s.hauer@pengutronix.de> - * - * 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. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include <common.h> @@ -29,9 +19,10 @@ static struct clocksource cs = { .read = arm_arch_clocksource_read, .mask = CLOCKSOURCE_MASK(64), .shift = 0, + .priority = 70, }; -static int arm_arch_timer_probe(struct device_d *dev) +static int arm_arch_timer_probe(struct device *dev) { cs.mult = clocksource_hz2mult(get_cntfrq(), cs.shift); @@ -43,8 +34,9 @@ static struct of_device_id arm_arch_timer_dt_ids[] = { { .compatible = "arm,armv8-timer", }, { } }; +MODULE_DEVICE_TABLE(of, arm_arch_timer_dt_ids); -static struct driver_d arm_arch_timer_driver = { +static struct driver arm_arch_timer_driver = { .name = "arm-architected-timer", .probe = arm_arch_timer_probe, .of_compatible = DRV_OF_COMPAT(arm_arch_timer_dt_ids), |