forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-meson/platsmp.c
....@@ -1,17 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2015 Carlo Caione <carlo@endlessm.com>
34 * Copyright (C) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
155 */
166
177 #include <linux/delay.h>
....@@ -81,6 +71,7 @@
8171 }
8272
8373 sram_base = of_iomap(node, 0);
74
+ of_node_put(node);
8475 if (!sram_base) {
8576 pr_err("Couldn't map SRAM registers\n");
8677 return;
....@@ -101,6 +92,7 @@
10192 }
10293
10394 scu_base = of_iomap(node, 0);
95
+ of_node_put(node);
10496 if (!scu_base) {
10597 pr_err("Couldn't map SCU registers\n");
10698 return;