Commit 80c68c1e authored by Boris BREZILLON's avatar Boris BREZILLON Committed by Tomi Valkeinen

video: of: display_timing: fix default native-mode setting

Set native mode to the first child node of the display-timings node and not
the first child node of the display-timings parent node.
Signed-off-by: default avatarBoris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 3f513f4c
...@@ -160,7 +160,7 @@ struct display_timings *of_get_display_timings(struct device_node *np) ...@@ -160,7 +160,7 @@ struct display_timings *of_get_display_timings(struct device_node *np)
entry = of_parse_phandle(timings_np, "native-mode", 0); entry = of_parse_phandle(timings_np, "native-mode", 0);
/* assume first child as native mode if none provided */ /* assume first child as native mode if none provided */
if (!entry) if (!entry)
entry = of_get_next_child(np, NULL); entry = of_get_next_child(timings_np, NULL);
/* if there is no child, it is useless to go on */ /* if there is no child, it is useless to go on */
if (!entry) { if (!entry) {
pr_err("%s: no timing specifications given\n", pr_err("%s: no timing specifications given\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment