diff options
Diffstat (limited to 'drivers/clocksource/timer-atmel-pit.c')
-rw-r--r-- | drivers/clocksource/timer-atmel-pit.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c index 368aae2450..9d2ff32c48 100644 --- a/drivers/clocksource/timer-atmel-pit.c +++ b/drivers/clocksource/timer-atmel-pit.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> @@ -9,24 +10,13 @@ * * (C) Copyright 2002 * Gary Jennejohn, DENX Software Engineering, <gj@denx.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> #include <init.h> #include <clock.h> -#include <mach/hardware.h> -#include <mach/at91_pit.h> +#include <mach/at91/hardware.h> +#include <mach/at91/at91_pit.h> #include <io.h> #include <linux/clk.h> #include <linux/err.h> @@ -46,6 +36,7 @@ static struct clocksource cs = { .read = at91sam9_clocksource_read, .mask = CLOCKSOURCE_MASK(32), .shift = 10, + .priority = 70, }; static void at91_pit_stop(void) @@ -65,7 +56,7 @@ static void at91sam926x_pit_reset(void) pit_write(AT91_PIT_MR, 0xfffff | AT91_PIT_PITEN); } -static int at91_pit_probe(struct device_d *dev) +static int at91_pit_probe(struct device *dev) { struct clk *clk; u32 pit_rate; @@ -105,8 +96,9 @@ const static __maybe_unused struct of_device_id at91_pit_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, at91_pit_dt_ids); -static struct driver_d at91_pit_driver = { +static struct driver at91_pit_driver = { .name = "at91-pit", .probe = at91_pit_probe, .of_compatible = DRV_OF_COMPAT(at91_pit_dt_ids), |