forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-zynq/common.c
....@@ -1,28 +1,21 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * This file contains common code that is intended to be used across
34 * boards so that it's not replicated.
45 *
56 * Copyright (C) 2011 Xilinx
6
- *
7
- * This software is licensed under the terms of the GNU General Public
8
- * License version 2, as published by the Free Software Foundation, and
9
- * may be copied, distributed, and modified under those terms.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
157 */
168
179 #include <linux/init.h>
10
+#include <linux/io.h>
1811 #include <linux/kernel.h>
1912 #include <linux/cpumask.h>
2013 #include <linux/platform_device.h>
2114 #include <linux/clk.h>
22
-#include <linux/clk-provider.h>
2315 #include <linux/clk/zynq.h>
2416 #include <linux/clocksource.h>
2517 #include <linux/of_address.h>
18
+#include <linux/of_clk.h>
2619 #include <linux/of_irq.h>
2720 #include <linux/of_platform.h>
2821 #include <linux/of.h>
....@@ -31,13 +24,13 @@
3124 #include <linux/irqchip/arm-gic.h>
3225 #include <linux/slab.h>
3326 #include <linux/sys_soc.h>
27
+#include <linux/pgtable.h>
3428
3529 #include <asm/mach/arch.h>
3630 #include <asm/mach/map.h>
3731 #include <asm/mach/time.h>
3832 #include <asm/mach-types.h>
3933 #include <asm/page.h>
40
-#include <asm/pgtable.h>
4134 #include <asm/smp_scu.h>
4235 #include <asm/system_info.h>
4336 #include <asm/hardware/cache-l2x0.h>
....@@ -84,6 +77,7 @@
8477 }
8578
8679 zynq_devcfg_base = of_iomap(np, 0);
80
+ of_node_put(np);
8781 if (!zynq_devcfg_base) {
8882 pr_err("%s: Unable to map I/O memory\n", __func__);
8983 return -1;