]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
video: of: display_timing: fix default native-mode setting
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Fri, 9 May 2014 13:53:12 +0000 (15:53 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 23 May 2014 10:31:19 +0000 (13:31 +0300)
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>
drivers/video/of_display_timing.c

index 3dc93cfacd477cd283d1e14b633365217a27caa7..987edf1100380b9d075067c659980931cfbda31b 100644 (file)
@@ -160,7 +160,7 @@ struct display_timings *of_get_display_timings(struct device_node *np)
        entry = of_parse_phandle(timings_np, "native-mode", 0);
        /* assume first child as native mode if none provided */
        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 (!entry) {
                pr_err("%s: no timing specifications given\n",