nvmem: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Wed, 26 Jul 2017 09:34:44 +0000 (11:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:33:22 +0000 (17:33 +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>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c

index 4c49285168fb79afe7a46cd917b356f5fb260275..b0c60338296a0ab1d7edcc33bd8da7d5a4acb993 100644 (file)
@@ -794,8 +794,8 @@ struct nvmem_cell *of_nvmem_cell_get(struct device_node *np,
 
        addr = of_get_property(cell_np, "reg", &len);
        if (!addr || (len < 2 * sizeof(u32))) {
-               dev_err(&nvmem->dev, "nvmem: invalid reg on %s\n",
-                       cell_np->full_name);
+               dev_err(&nvmem->dev, "nvmem: invalid reg on %pOF\n",
+                       cell_np);
                rval  = -EINVAL;
                goto err_mem;
        }