video: of: display_timing: correct display-timings node finding
of_get_display_timing(s) use of_find_node_by_name to get child node, this is incorrect, of_get_child_by_name should be used instead. The patch fixes it. Small typo is also corrected. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
committed by
Tomi Valkeinen
parent
8c42cf7549
commit
60119a1d68
@@ -120,7 +120,7 @@ int of_get_display_timing(struct device_node *np, const char *name,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
timing_np = of_find_node_by_name(np, name);
|
timing_np = of_get_child_by_name(np, name);
|
||||||
if (!timing_np) {
|
if (!timing_np) {
|
||||||
pr_err("%s: could not find node '%s'\n",
|
pr_err("%s: could not find node '%s'\n",
|
||||||
of_node_full_name(np), name);
|
of_node_full_name(np), name);
|
||||||
@@ -147,7 +147,7 @@ struct display_timings *of_get_display_timings(struct device_node *np)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
timings_np = of_find_node_by_name(np, "display-timings");
|
timings_np = of_get_child_by_name(np, "display-timings");
|
||||||
if (!timings_np) {
|
if (!timings_np) {
|
||||||
pr_err("%s: could not find display-timings node\n",
|
pr_err("%s: could not find display-timings node\n",
|
||||||
of_node_full_name(np));
|
of_node_full_name(np));
|
||||||
|
Reference in New Issue
Block a user