]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 987edf1100380b9d075067c659980931cfbda31b..3d4c2d41f62e39e284ab4797ec92221bcee8e314 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;