diff options
Diffstat (limited to 'drivers/clocksource/orion.c')
-rw-r--r-- | drivers/clocksource/orion.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/drivers/clocksource/orion.c b/drivers/clocksource/orion.c index c9f50b729e..caa314e884 100644 --- a/drivers/clocksource/orion.c +++ b/drivers/clocksource/orion.c @@ -1,17 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright * (C) 2013 Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> - * - * 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> @@ -41,9 +31,10 @@ static struct clocksource clksrc = { .read = orion_clocksource_read, .mask = CLOCKSOURCE_MASK(32), .shift = 10, + .priority = 70, }; -static int orion_timer_probe(struct device_d *dev) +static int orion_timer_probe(struct device *dev) { struct resource *iores; struct clk *tclk; @@ -72,8 +63,9 @@ static struct of_device_id orion_timer_dt_ids[] = { { .compatible = "marvell,orion-timer", }, { } }; +MODULE_DEVICE_TABLE(of, orion_timer_dt_ids); -static struct driver_d orion_timer_driver = { +static struct driver orion_timer_driver = { .name = "orion-timer", .probe = orion_timer_probe, .of_compatible = DRV_OF_COMPAT(orion_timer_dt_ids), |