hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/arm/mach-omap2/omap4-common.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * OMAP4 specific common source file.
34 *
45 * Copyright (C) 2010 Texas Instruments, Inc.
56 * Author:
67 * Santosh Shilimkar <santosh.shilimkar@ti.com>
7
- *
8
- *
9
- * This program is free software,you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
128 */
139
1410 #include <linux/kernel.h>
....@@ -318,10 +314,12 @@
318314
319315 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic");
320316 gic_dist_base_addr = of_iomap(np, 0);
317
+ of_node_put(np);
321318 WARN_ON(!gic_dist_base_addr);
322319
323320 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-twd-timer");
324321 twd_base = of_iomap(np, 0);
322
+ of_node_put(np);
325323 WARN_ON(!twd_base);
326324
327325 skip_errata_init: