diff options
Diffstat (limited to 'drivers/of/overlay.c')
-rw-r--r-- | drivers/of/overlay.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index c0e4ee1cd1ba..0ddffebd7838 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c | |||
@@ -141,7 +141,7 @@ static int of_overlay_apply_single_device_node(struct of_overlay *ov, | |||
141 | of_node_put(tchild); | 141 | of_node_put(tchild); |
142 | } else { | 142 | } else { |
143 | /* create empty tree as a target */ | 143 | /* create empty tree as a target */ |
144 | tchild = __of_node_dup(child, "%s/%s", target->full_name, cname); | 144 | tchild = __of_node_dup(child, "%pOF/%s", target, cname); |
145 | if (!tchild) | 145 | if (!tchild) |
146 | return -ENOMEM; | 146 | return -ENOMEM; |
147 | 147 | ||
@@ -177,8 +177,8 @@ static int of_overlay_apply_one(struct of_overlay *ov, | |||
177 | for_each_property_of_node(overlay, prop) { | 177 | for_each_property_of_node(overlay, prop) { |
178 | ret = of_overlay_apply_single_property(ov, target, prop); | 178 | ret = of_overlay_apply_single_property(ov, target, prop); |
179 | if (ret) { | 179 | if (ret) { |
180 | pr_err("Failed to apply prop @%s/%s\n", | 180 | pr_err("Failed to apply prop @%pOF/%s\n", |
181 | target->full_name, prop->name); | 181 | target, prop->name); |
182 | return ret; | 182 | return ret; |
183 | } | 183 | } |
184 | } | 184 | } |
@@ -186,8 +186,8 @@ static int of_overlay_apply_one(struct of_overlay *ov, | |||
186 | for_each_child_of_node(overlay, child) { | 186 | for_each_child_of_node(overlay, child) { |
187 | ret = of_overlay_apply_single_device_node(ov, target, child); | 187 | ret = of_overlay_apply_single_device_node(ov, target, child); |
188 | if (ret != 0) { | 188 | if (ret != 0) { |
189 | pr_err("Failed to apply single node @%s/%s\n", | 189 | pr_err("Failed to apply single node @%pOF/%s\n", |
190 | target->full_name, child->name); | 190 | target, child->name); |
191 | of_node_put(child); | 191 | of_node_put(child); |
192 | return ret; | 192 | return ret; |
193 | } | 193 | } |
@@ -215,7 +215,7 @@ static int of_overlay_apply(struct of_overlay *ov) | |||
215 | 215 | ||
216 | err = of_overlay_apply_one(ov, ovinfo->target, ovinfo->overlay); | 216 | err = of_overlay_apply_one(ov, ovinfo->target, ovinfo->overlay); |
217 | if (err != 0) { | 217 | if (err != 0) { |
218 | pr_err("apply failed '%s'\n", ovinfo->target->full_name); | 218 | pr_err("apply failed '%pOF'\n", ovinfo->target); |
219 | return err; | 219 | return err; |
220 | } | 220 | } |
221 | } | 221 | } |
@@ -400,8 +400,8 @@ int of_overlay_create(struct device_node *tree) | |||
400 | /* build the overlay info structures */ | 400 | /* build the overlay info structures */ |
401 | err = of_build_overlay_info(ov, tree); | 401 | err = of_build_overlay_info(ov, tree); |
402 | if (err) { | 402 | if (err) { |
403 | pr_err("of_build_overlay_info() failed for tree@%s\n", | 403 | pr_err("of_build_overlay_info() failed for tree@%pOF\n", |
404 | tree->full_name); | 404 | tree); |
405 | goto err_free_idr; | 405 | goto err_free_idr; |
406 | } | 406 | } |
407 | 407 | ||
@@ -480,9 +480,8 @@ static int overlay_is_topmost(struct of_overlay *ov, struct device_node *dn) | |||
480 | /* check against each subtree affected by this overlay */ | 480 | /* check against each subtree affected by this overlay */ |
481 | list_for_each_entry(ce, &ovt->cset.entries, node) { | 481 | list_for_each_entry(ce, &ovt->cset.entries, node) { |
482 | if (overlay_subtree_check(ce->np, dn)) { | 482 | if (overlay_subtree_check(ce->np, dn)) { |
483 | pr_err("%s: #%d clashes #%d @%s\n", | 483 | pr_err("%s: #%d clashes #%d @%pOF\n", |
484 | __func__, ov->id, ovt->id, | 484 | __func__, ov->id, ovt->id, dn); |
485 | dn->full_name); | ||
486 | return 0; | 485 | return 0; |
487 | } | 486 | } |
488 | } | 487 | } |