diff options
Diffstat (limited to 'drivers/clocksource/timer-ti-dm.c')
-rw-r--r-- | drivers/clocksource/timer-ti-dm.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 86882fcaf5..8473cf733d 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /** * @file * @brief Support DMTimer counter @@ -14,25 +15,14 @@ * Author: Teresa Gámez <t.gamez@phytec.de> * (C) Copyright 2015 Phytec Messtechnik GmbH * Author: Daniel Schultz <d.schultz@phytec.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 <clock.h> #include <init.h> #include <io.h> -#include <mach/am33xx-silicon.h> -#include <mach/am33xx-clock.h> +#include <mach/omap/am33xx-silicon.h> +#include <mach/omap/am33xx-clock.h> #include <stdio.h> @@ -72,9 +62,10 @@ static struct clocksource dmtimer_cs = { .read = dmtimer_read, .mask = CLOCKSOURCE_MASK(32), .shift = 10, + .priority = 70, }; -static int omap_dmtimer_probe(struct device_d *dev) +static int omap_dmtimer_probe(struct device *dev) { struct resource *iores; u64 clk_speed; @@ -105,8 +96,9 @@ static __maybe_unused struct of_device_id omap_dmtimer_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, omap_dmtimer_dt_ids); -static struct driver_d omap_dmtimer_driver = { +static struct driver omap_dmtimer_driver = { .name = "omap-dmtimer", .probe = omap_dmtimer_probe, .of_compatible = DRV_OF_COMPAT(omap_dmtimer_dt_ids), |