aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-06-06 17:45:15 -0400
committerRob Herring <robh@kernel.org>2017-08-29 09:52:51 -0400
commit55e18b18335132cb21d815e09c376fca891f5af2 (patch)
tree16efc021762cb5063115ed73f485147587e081ae
parent985541f6c01e67bcdce433847d1b56fe8f523bf0 (diff)
virt: 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>
-rw-r--r--drivers/virt/fsl_hypervisor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/virt/fsl_hypervisor.c b/drivers/virt/fsl_hypervisor.c
index d3eca879a0a8..d993df5586c0 100644
--- a/drivers/virt/fsl_hypervisor.c
+++ b/drivers/virt/fsl_hypervisor.c
@@ -841,8 +841,8 @@ static int __init fsl_hypervisor_init(void)
841 handle = of_get_property(np, "interrupts", NULL); 841 handle = of_get_property(np, "interrupts", NULL);
842 irq = irq_of_parse_and_map(np, 0); 842 irq = irq_of_parse_and_map(np, 0);
843 if (!handle || (irq == NO_IRQ)) { 843 if (!handle || (irq == NO_IRQ)) {
844 pr_err("fsl-hv: no 'interrupts' property in %s node\n", 844 pr_err("fsl-hv: no 'interrupts' property in %pOF node\n",
845 np->full_name); 845 np);
846 continue; 846 continue;
847 } 847 }
848 848
@@ -869,8 +869,8 @@ static int __init fsl_hypervisor_init(void)
869 */ 869 */
870 dbisr->partition = ret = get_parent_handle(np); 870 dbisr->partition = ret = get_parent_handle(np);
871 if (ret < 0) { 871 if (ret < 0) {
872 pr_err("fsl-hv: node %s has missing or " 872 pr_err("fsl-hv: node %pOF has missing or "
873 "malformed parent\n", np->full_name); 873 "malformed parent\n", np);
874 kfree(dbisr); 874 kfree(dbisr);
875 continue; 875 continue;
876 } 876 }
@@ -881,8 +881,8 @@ static int __init fsl_hypervisor_init(void)
881 ret = request_irq(irq, fsl_hv_isr, 0, np->name, dbisr); 881 ret = request_irq(irq, fsl_hv_isr, 0, np->name, dbisr);
882 882
883 if (ret < 0) { 883 if (ret < 0) {
884 pr_err("fsl-hv: could not request irq %u for node %s\n", 884 pr_err("fsl-hv: could not request irq %u for node %pOF\n",
885 irq, np->full_name); 885 irq, np);
886 kfree(dbisr); 886 kfree(dbisr);
887 continue; 887 continue;
888 } 888 }