diff options
Diffstat (limited to 'drivers/clocksource/mvebu.c')
-rw-r--r-- | drivers/clocksource/mvebu.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/clocksource/mvebu.c b/drivers/clocksource/mvebu.c index 5a47d6f217..6a1c3d58de 100644 --- a/drivers/clocksource/mvebu.c +++ b/drivers/clocksource/mvebu.c @@ -1,16 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2013 Thomas Petazzoni <thomas.petazzoni@free-electrons.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> @@ -52,9 +42,10 @@ static struct clocksource cs = { .read = mvebu_clocksource_read, .mask = CLOCKSOURCE_MASK(32), .shift = 10, + .priority = 70, }; -static int mvebu_timer_probe(struct device_d *dev) +static int mvebu_timer_probe(struct device *dev) { struct resource *iores; struct clk *clk; @@ -67,7 +58,7 @@ static int mvebu_timer_probe(struct device_d *dev) val = __raw_readl(timer_base + TIMER_CTRL_OFF); val &= ~(TIMER0_25MHZ | TIMER0_DIV_MASK); - if (of_device_is_compatible(dev->device_node, + if (of_device_is_compatible(dev->of_node, "marvell,armada-370-timer")) { clk = clk_get(dev, NULL); div = TIMER_DIVIDER; @@ -98,8 +89,9 @@ static struct of_device_id mvebu_timer_dt_ids[] = { { .compatible = "marvell,armada-xp-timer", }, { } }; +MODULE_DEVICE_TABLE(of, mvebu_timer_dt_ids); -static struct driver_d mvebu_timer_driver = { +static struct driver mvebu_timer_driver = { .name = "mvebu-timer", .probe = mvebu_timer_probe, .of_compatible = DRV_OF_COMPAT(mvebu_timer_dt_ids), |