diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2014-05-09 09:53:12 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-05-23 06:31:19 -0400 |
commit | 80c68c1e2e801a14d718f2ab9690398a864aa37c (patch) | |
tree | 60f1ffddbc69b601a5993a5e4c3a1bdd4880e00d /drivers/video/of_display_timing.c | |
parent | 3f513f4cc4f9620fb47b30de573d71091ea68026 (diff) |
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: Boris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/of_display_timing.c')
-rw-r--r-- | drivers/video/of_display_timing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index 3dc93cfacd47..987edf110038 100644 --- a/drivers/video/of_display_timing.c +++ b/drivers/video/of_display_timing.c | |||
@@ -160,7 +160,7 @@ struct display_timings *of_get_display_timings(struct device_node *np) | |||
160 | entry = of_parse_phandle(timings_np, "native-mode", 0); | 160 | entry = of_parse_phandle(timings_np, "native-mode", 0); |
161 | /* assume first child as native mode if none provided */ | 161 | /* assume first child as native mode if none provided */ |
162 | if (!entry) | 162 | if (!entry) |
163 | entry = of_get_next_child(np, NULL); | 163 | entry = of_get_next_child(timings_np, NULL); |
164 | /* if there is no child, it is useless to go on */ | 164 | /* if there is no child, it is useless to go on */ |
165 | if (!entry) { | 165 | if (!entry) { |
166 | pr_err("%s: no timing specifications given\n", | 166 | pr_err("%s: no timing specifications given\n", |