video: fix semantics of of_display_timings_exist()
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 26 Feb 2015 10:36:11 +0000 (11:36 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 26 Feb 2015 10:36:11 +0000 (11:36 +0100)
The function currently uses of_parse_phandle() to evaluate a
'display-timings' property (pointing to a node that contains the
actual timings) rather than a node named 'display-timings' containing
the timings, which is how the DTB layout actually is.

Use of_get_child_by_name() to find a node by this name instead.

drivers/video/of_display_timing.c

index 987edf1..3d4c2d4 100644 (file)
@@ -255,7 +255,7 @@ int of_display_timings_exist(struct device_node *np)
        if (!np)
                return -EINVAL;
 
-       timings_np = of_parse_phandle(np, "display-timings", 0);
+       timings_np = of_get_child_by_name(np, "display-timings");
        if (!timings_np)
                return -EINVAL;