diff options
| -rw-r--r-- | drivers/video/tegra/dc/nvdisp/nvdisp_stub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/tegra/dc/nvdisp/nvdisp_stub.c b/drivers/video/tegra/dc/nvdisp/nvdisp_stub.c index a1fba3121..b0be292cd 100644 --- a/drivers/video/tegra/dc/nvdisp/nvdisp_stub.c +++ b/drivers/video/tegra/dc/nvdisp/nvdisp_stub.c | |||
| @@ -371,7 +371,7 @@ struct device_node *tegra_primary_panel_get_dt_node( | |||
| 371 | np_panel = of_get_child_by_name(np_primary, "panel-nvidia-sim"); | 371 | np_panel = of_get_child_by_name(np_primary, "panel-nvidia-sim"); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | if (!np_panel) | 374 | if (!np_panel && *dc_or_node_names[0]) |
| 375 | pr_err("Could not find panel for primary node\n"); | 375 | pr_err("Could not find panel for primary node\n"); |
| 376 | 376 | ||
| 377 | return of_device_is_available(np_panel) ? np_panel : NULL; | 377 | return of_device_is_available(np_panel) ? np_panel : NULL; |
| @@ -437,7 +437,7 @@ struct device_node *tegra_secondary_panel_get_dt_node( | |||
| 437 | np_panel = of_get_child_by_name(np_secondary, "panel-nvidia-sim"); | 437 | np_panel = of_get_child_by_name(np_secondary, "panel-nvidia-sim"); |
| 438 | } | 438 | } |
| 439 | 439 | ||
| 440 | if (!np_panel) | 440 | if (!np_panel && *dc_or_node_names[1]) |
| 441 | pr_err("Could not find panel for secondary node\n"); | 441 | pr_err("Could not find panel for secondary node\n"); |
| 442 | 442 | ||
| 443 | return of_device_is_available(np_panel) ? np_panel : NULL; | 443 | return of_device_is_available(np_panel) ? np_panel : NULL; |
| @@ -478,7 +478,7 @@ struct device_node *tegra_tertiary_panel_get_dt_node( | |||
| 478 | np_panel = of_get_child_by_name(np_tertiary, "hdmi-display"); | 478 | np_panel = of_get_child_by_name(np_tertiary, "hdmi-display"); |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | if (!np_panel) | 481 | if (!np_panel && *dc_or_node_names[2]) |
| 482 | pr_err("Could not find panel for tertiary node\n"); | 482 | pr_err("Could not find panel for tertiary node\n"); |
| 483 | 483 | ||
| 484 | return (of_device_is_available(np_panel) ? np_panel : NULL); | 484 | return (of_device_is_available(np_panel) ? np_panel : NULL); |
