diff options
Diffstat (limited to 'drivers/clocksource/timer-ti-32k.c')
-rw-r--r-- | drivers/clocksource/timer-ti-32k.c | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/drivers/clocksource/timer-ti-32k.c b/drivers/clocksource/timer-ti-32k.c index 755c78095f..1880082066 100644 --- a/drivers/clocksource/timer-ti-32k.c +++ b/drivers/clocksource/timer-ti-32k.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /** * @file * @brief Provide @ref clocksource functionality for OMAP @@ -9,28 +10,18 @@ * (C) Copyright 2008 * Texas Instruments, <www.ti.com> * Nishanth Menon <x0nishan@ti.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> #include <clock.h> #include <init.h> #include <io.h> -#include <mach/omap3-silicon.h> -#include <mach/omap4-silicon.h> -#include <mach/clocks.h> -#include <mach/timers.h> -#include <mach/sys_info.h> -#include <mach/syslib.h> +#include <mach/omap/omap3-silicon.h> +#include <mach/omap/omap4-silicon.h> +#include <mach/omap/clocks.h> +#include <mach/omap/timers.h> +#include <mach/omap/sys_info.h> +#include <mach/omap/syslib.h> /** Sync 32Khz Timer registers */ #define S32K_CR 0x10 @@ -56,6 +47,7 @@ static struct clocksource s32k_cs = { .read = s32k_clocksource_read, .mask = CLOCKSOURCE_MASK(32), .shift = 10, + .priority = 70, }; /** @@ -67,7 +59,7 @@ static struct clocksource s32k_cs = { * * @return result of @ref init_clock */ -static int omap_32ktimer_probe(struct device_d *dev) +static int omap_32ktimer_probe(struct device *dev) { struct resource *iores; @@ -92,8 +84,9 @@ static __maybe_unused struct of_device_id omap_32ktimer_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, omap_32ktimer_dt_ids); -static struct driver_d omap_32ktimer_driver = { +static struct driver omap_32ktimer_driver = { .name = "omap-32ktimer", .probe = omap_32ktimer_probe, .of_compatible = DRV_OF_COMPAT(omap_32ktimer_dt_ids), |