| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * FSP-2 board specific routines |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 10 | 11 | * |
|---|
| 11 | 12 | * Rewritten and ported to the merged powerpc tree: |
|---|
| 12 | 13 | * 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. |
|---|
| 18 | 14 | */ |
|---|
| 19 | 15 | |
|---|
| 20 | 16 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 210 | 206 | for_each_compatible_node(np, NULL, compat) { |
|---|
| 211 | 207 | irq = irq_of_parse_and_map(np, 0); |
|---|
| 212 | 208 | 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); |
|---|
| 215 | 212 | return; |
|---|
| 216 | 213 | } |
|---|
| 217 | 214 | |
|---|
| 218 | 215 | rc = request_irq(irq, errirq_handler, 0, np->name, np); |
|---|
| 219 | 216 | 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); |
|---|
| 222 | 220 | return; |
|---|
| 223 | 221 | } |
|---|
| 224 | 222 | } |
|---|