hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm/mach-vexpress/dcscb.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * arch/arm/mach-vexpress/dcscb.c - Dual Cluster System Configuration Block
34 *
45 * Created by: Nicolas Pitre, May 2012
56 * Copyright: (C) 2012-2013 Linaro Limited
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/init.h>
....@@ -23,6 +20,7 @@
2320 #include <asm/cputype.h>
2421 #include <asm/cp15.h>
2522
23
+#include "core.h"
2624
2725 #define RST_HOLD0 0x0
2826 #define RST_HOLD1 0x4
....@@ -146,6 +144,7 @@
146144 if (!node)
147145 return -ENODEV;
148146 dcscb_base = of_iomap(node, 0);
147
+ of_node_put(node);
149148 if (!dcscb_base)
150149 return -EADDRNOTAVAIL;
151150 cfg = readl_relaxed(dcscb_base + DCS_CFG_R);