hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/platforms/44x/fsp2.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * FSP-2 board specific routines
34 *
....@@ -10,11 +11,6 @@
1011 *
1112 * Rewritten and ported to the merged powerpc tree:
1213 * Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation.
13
- *
14
- * This program is free software; you can redistribute it and/or modify it
15
- * under the terms of the GNU General Public License as published by the
16
- * Free Software Foundation; either version 2 of the License, or (at your
17
- * option) any later version.
1814 */
1915
2016 #include <linux/init.h>
....@@ -210,15 +206,17 @@
210206 for_each_compatible_node(np, NULL, compat) {
211207 irq = irq_of_parse_and_map(np, 0);
212208 if (irq == NO_IRQ) {
213
- pr_err("device tree node %s is missing a interrupt",
214
- np->name);
209
+ pr_err("device tree node %pOFn is missing a interrupt",
210
+ np);
211
+ of_node_put(np);
215212 return;
216213 }
217214
218215 rc = request_irq(irq, errirq_handler, 0, np->name, np);
219216 if (rc) {
220
- pr_err("fsp_of_probe: request_irq failed: np=%s rc=%d",
221
- np->full_name, rc);
217
+ pr_err("fsp_of_probe: request_irq failed: np=%pOF rc=%d",
218
+ np, rc);
219
+ of_node_put(np);
222220 return;
223221 }
224222 }