hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/mach-imx/gpc.c
....@@ -1,13 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2011-2013 Freescale Semiconductor, Inc.
34 * Copyright 2011 Linaro Ltd.
4
- *
5
- * The code contained herein is licensed under the GNU General Public
6
- * License. You may obtain a copy of the GNU General Public License
7
- * Version 2 or later at the following locations:
8
- *
9
- * http://www.opensource.org/licenses/gpl-license.html
10
- * http://www.gnu.org/copyleft/gpl.html
115 */
126
137 #include <linux/io.h>
....@@ -16,7 +10,7 @@
1610 #include <linux/of.h>
1711 #include <linux/of_address.h>
1812 #include <linux/of_irq.h>
19
-#include <linux/irqchip/arm-gic.h>
13
+
2014 #include "common.h"
2115 #include "hardware.h"
2216
....@@ -117,7 +111,6 @@
117111 gpc_saved_imrs[i] = readl_relaxed(reg_imr1 + i * 4);
118112 writel_relaxed(~0, reg_imr1 + i * 4);
119113 }
120
-
121114 }
122115
123116 void imx_gpc_restore_all(void)
....@@ -288,4 +281,5 @@
288281 /* map GPC, so that at least CPUidle and WARs keep working */
289282 gpc_base = of_iomap(np, 0);
290283 }
284
+ of_node_put(np);
291285 }