| .. | .. |
|---|
| 383 | 383 | |
|---|
| 384 | 384 | domains_node = of_get_child_by_name(np_pmu, "domains"); |
|---|
| 385 | 385 | if (!domains_node) { |
|---|
| 386 | | - pr_err("%s: failed to find domains sub-node\n", np_pmu->name); |
|---|
| 386 | + pr_err("%pOFn: failed to find domains sub-node\n", np_pmu); |
|---|
| 387 | 387 | return 0; |
|---|
| 388 | 388 | } |
|---|
| 389 | 389 | |
|---|
| .. | .. |
|---|
| 396 | 396 | pmu->pmc_base = of_iomap(pmu->of_node, 0); |
|---|
| 397 | 397 | pmu->pmu_base = of_iomap(pmu->of_node, 1); |
|---|
| 398 | 398 | if (!pmu->pmc_base || !pmu->pmu_base) { |
|---|
| 399 | | - pr_err("%s: failed to map PMU\n", np_pmu->name); |
|---|
| 399 | + pr_err("%pOFn: failed to map PMU\n", np_pmu); |
|---|
| 400 | 400 | iounmap(pmu->pmu_base); |
|---|
| 401 | 401 | iounmap(pmu->pmc_base); |
|---|
| 402 | 402 | kfree(pmu); |
|---|
| .. | .. |
|---|
| 414 | 414 | break; |
|---|
| 415 | 415 | |
|---|
| 416 | 416 | domain->pmu = pmu; |
|---|
| 417 | | - domain->base.name = kstrdup(np->name, GFP_KERNEL); |
|---|
| 417 | + domain->base.name = kasprintf(GFP_KERNEL, "%pOFn", np); |
|---|
| 418 | 418 | if (!domain->base.name) { |
|---|
| 419 | 419 | kfree(domain); |
|---|
| 420 | 420 | break; |
|---|
| .. | .. |
|---|
| 444 | 444 | /* Loss of the interrupt controller is not a fatal error. */ |
|---|
| 445 | 445 | parent_irq = irq_of_parse_and_map(pmu->of_node, 0); |
|---|
| 446 | 446 | if (!parent_irq) { |
|---|
| 447 | | - pr_err("%s: no interrupt specified\n", np_pmu->name); |
|---|
| 447 | + pr_err("%pOFn: no interrupt specified\n", np_pmu); |
|---|
| 448 | 448 | } else { |
|---|
| 449 | 449 | ret = dove_init_pmu_irq(pmu, parent_irq); |
|---|
| 450 | 450 | if (ret) |
|---|