hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/netlogic/common/irq.c
....@@ -291,7 +291,7 @@
291291 /* we need a hack to get the PIC's SoC chip id */
292292 ret = of_address_to_resource(node, 0, &res);
293293 if (ret < 0) {
294
- pr_err("PIC %s: reg property not found!\n", node->name);
294
+ pr_err("PIC %pOFn: reg property not found!\n", node);
295295 return -EINVAL;
296296 }
297297
....@@ -304,21 +304,21 @@
304304 break;
305305 }
306306 if (socid == NLM_NR_NODES) {
307
- pr_err("PIC %s: Node mapping for bus %d not found!\n",
308
- node->name, bus);
307
+ pr_err("PIC %pOFn: Node mapping for bus %d not found!\n",
308
+ node, bus);
309309 return -EINVAL;
310310 }
311311 } else {
312312 socid = (res.start >> 18) & 0x3;
313313 if (!nlm_node_present(socid)) {
314
- pr_err("PIC %s: node %d does not exist!\n",
315
- node->name, socid);
314
+ pr_err("PIC %pOFn: node %d does not exist!\n",
315
+ node, socid);
316316 return -EINVAL;
317317 }
318318 }
319319
320320 if (!nlm_node_present(socid)) {
321
- pr_err("PIC %s: node %d does not exist!\n", node->name, socid);
321
+ pr_err("PIC %pOFn: node %d does not exist!\n", node, socid);
322322 return -EINVAL;
323323 }
324324
....@@ -326,7 +326,7 @@
326326 nlm_irq_to_xirq(socid, PIC_IRQ_BASE), PIC_IRQ_BASE,
327327 &xlp_pic_irq_domain_ops, NULL);
328328 if (xlp_pic_domain == NULL) {
329
- pr_err("PIC %s: Creating legacy domain failed!\n", node->name);
329
+ pr_err("PIC %pOFn: Creating legacy domain failed!\n", node);
330330 return -EINVAL;
331331 }
332332 pr_info("Node %d: IRQ domain created for PIC@%pR\n", socid, &res);