mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
nvmem: 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: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
aed0c46e32
commit
5f214ccdd1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user