diff options
Diffstat (limited to 'drivers/clocksource/digic.c')
-rw-r--r-- | drivers/clocksource/digic.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/clocksource/digic.c b/drivers/clocksource/digic.c index 9079733eba..38c4bd7dd2 100644 --- a/drivers/clocksource/digic.c +++ b/drivers/clocksource/digic.c @@ -1,17 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2013, 2014 Antony Pavlov <antonynpavlov@gmail.com> * * This file is part of barebox. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * 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> @@ -35,9 +26,10 @@ static uint64_t digic_cs_read(void) static struct clocksource digic_cs = { .read = digic_cs_read, .mask = CLOCKSOURCE_MASK(16), + .priority = 60, }; -static int digic_timer_probe(struct device_d *dev) +static int digic_timer_probe(struct device *dev) { struct resource *iores; /* use only one timer */ @@ -81,8 +73,9 @@ static __maybe_unused struct of_device_id digic_timer_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, digic_timer_dt_ids); -static struct driver_d digic_timer_driver = { +static struct driver digic_timer_driver = { .probe = digic_timer_probe, .name = "digic-timer", .of_compatible = DRV_OF_COMPAT(digic_timer_dt_ids), |