mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
perf: Convert to using %pOF instead of full_name
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Will Deacon <will.deacon@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
parent
a270f32735
commit
5f4216f49b
@ -131,8 +131,8 @@ static int pmu_parse_irqs(struct arm_pmu *pmu)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!pmu_has_irq_affinity(pdev->dev.of_node)) {
|
if (!pmu_has_irq_affinity(pdev->dev.of_node)) {
|
||||||
pr_warn("no interrupt-affinity property for %s, guessing.\n",
|
pr_warn("no interrupt-affinity property for %pOF, guessing.\n",
|
||||||
of_node_full_name(pdev->dev.of_node));
|
pdev->dev.of_node);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -211,7 +211,7 @@ int arm_pmu_device_probe(struct platform_device *pdev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_info("%s: failed to probe PMU!\n", of_node_full_name(node));
|
pr_info("%pOF: failed to probe PMU!\n", node);
|
||||||
goto out_free;
|
goto out_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,8 +228,7 @@ int arm_pmu_device_probe(struct platform_device *pdev,
|
|||||||
out_free_irqs:
|
out_free_irqs:
|
||||||
armpmu_free_irqs(pmu);
|
armpmu_free_irqs(pmu);
|
||||||
out_free:
|
out_free:
|
||||||
pr_info("%s: failed to register PMU devices!\n",
|
pr_info("%pOF: failed to register PMU devices!\n", node);
|
||||||
of_node_full_name(node));
|
|
||||||
armpmu_free(pmu);
|
armpmu_free(pmu);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user