Skip to content

Commit

Permalink
video: of: display_timing: correct display-timings node finding
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrzej Hajda authored and Tomi Valkeinen committed Sep 26, 2013
1 parent 8c42cf7 commit 60119a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/video/of_display_timing.c
Original file line number Diff line number Diff line change
@@ -120,7 +120,7 @@ int of_get_display_timing(struct device_node *np, const char *name,
return -EINVAL;
}

timing_np = of_find_node_by_name(np, name);
timing_np = of_get_child_by_name(np, name);
if (!timing_np) {
pr_err("%s: could not find node '%s'\n",
of_node_full_name(np), name);
@@ -143,11 +143,11 @@ struct display_timings *of_get_display_timings(struct device_node *np)
struct display_timings *disp;

if (!np) {
pr_err("%s: no devicenode given\n", of_node_full_name(np));
pr_err("%s: no device node given\n", of_node_full_name(np));
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) {
pr_err("%s: could not find display-timings node\n",
of_node_full_name(np));

0 comments on commit 60119a1

Please sign in to comment.