diff mbox

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

Message ID 1399643592-17125-1-git-send-email-boris.brezillon@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Boris BREZILLON May 9, 2014, 1:53 p.m. UTC
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>
---
 drivers/video/of_display_timing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tomi Valkeinen May 23, 2014, 10:31 a.m. UTC | #1
On 09/05/14 16:53, Boris BREZILLON wrote:
> 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>
> ---
>  drivers/video/of_display_timing.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c
> index ba5b40f..19dd752 100644
> --- a/drivers/video/of_display_timing.c
> +++ b/drivers/video/of_display_timing.c
> @@ -164,7 +164,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",
> 

Queued for 3.16.

 Tomi
diff mbox

Patch

diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c
index ba5b40f..19dd752 100644
--- a/drivers/video/of_display_timing.c
+++ b/drivers/video/of_display_timing.c
@@ -164,7 +164,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",