forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/pic32/pic32mzda/time.c
....@@ -1,21 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Joshua Henderson <joshua.henderson@microchip.com>
34 * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
4
- *
5
- * This program is free software; you can distribute it and/or modify it
6
- * under the terms of the GNU General Public License (Version 2) as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
- * for more details.
135 */
14
-#include <linux/clk-provider.h>
156 #include <linux/clocksource.h>
167 #include <linux/init.h>
178 #include <linux/irqdomain.h>
189 #include <linux/of.h>
10
+#include <linux/of_clk.h>
1911 #include <linux/of_irq.h>
2012
2113 #include <asm/time.h>
....@@ -31,7 +23,7 @@
3123
3224 static unsigned int pic32_xlate_core_timer_irq(void)
3325 {
34
- static struct device_node *node;
26
+ struct device_node *node;
3527 unsigned int irq;
3628
3729 node = of_find_matching_node(NULL, pic32_infra_match);