firmware: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:43:01 +0000 (16:43 -0500)
committerArnd Bergmann <arnd@arndb.de>
Wed, 16 Aug 2017 15:19:50 +0000 (17:19 +0200)
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>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/arm_scpi.c
drivers/firmware/psci.c

index 8043e51..59190c3 100644 (file)
@@ -965,7 +965,7 @@ static int scpi_probe(struct platform_device *pdev)
 
        count = of_count_phandle_with_args(np, "mboxes", "#mbox-cells");
        if (count < 0) {
-               dev_err(dev, "no mboxes property in '%s'\n", np->full_name);
+               dev_err(dev, "no mboxes property in '%pOF'\n", np);
                return -ENODEV;
        }
 
index 493a56a..d687ca3 100644 (file)
@@ -280,8 +280,8 @@ static int psci_dt_cpu_init_idle(struct device_node *cpu_node, int cpu)
                                           "arm,psci-suspend-param",
                                           &state);
                if (ret) {
-                       pr_warn(" * %s missing arm,psci-suspend-param property\n",
-                               state_node->full_name);
+                       pr_warn(" * %pOF missing arm,psci-suspend-param property\n",
+                               state_node);
                        of_node_put(state_node);
                        goto free_mem;
                }