.. | .. |
---|
291 | 291 | /* we need a hack to get the PIC's SoC chip id */ |
---|
292 | 292 | ret = of_address_to_resource(node, 0, &res); |
---|
293 | 293 | 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); |
---|
295 | 295 | return -EINVAL; |
---|
296 | 296 | } |
---|
297 | 297 | |
---|
.. | .. |
---|
304 | 304 | break; |
---|
305 | 305 | } |
---|
306 | 306 | 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); |
---|
309 | 309 | return -EINVAL; |
---|
310 | 310 | } |
---|
311 | 311 | } else { |
---|
312 | 312 | socid = (res.start >> 18) & 0x3; |
---|
313 | 313 | 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); |
---|
316 | 316 | return -EINVAL; |
---|
317 | 317 | } |
---|
318 | 318 | } |
---|
319 | 319 | |
---|
320 | 320 | 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); |
---|
322 | 322 | return -EINVAL; |
---|
323 | 323 | } |
---|
324 | 324 | |
---|
.. | .. |
---|
326 | 326 | nlm_irq_to_xirq(socid, PIC_IRQ_BASE), PIC_IRQ_BASE, |
---|
327 | 327 | &xlp_pic_irq_domain_ops, NULL); |
---|
328 | 328 | 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); |
---|
330 | 330 | return -EINVAL; |
---|
331 | 331 | } |
---|
332 | 332 | pr_info("Node %d: IRQ domain created for PIC@%pR\n", socid, &res); |
---|