diff options
| author | Sungwook Kim <sungwookk@nvidia.com> | 2016-09-11 20:35:38 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-14 19:46:14 -0400 |
| commit | 2fe97d8153a4a2fdeecb16037ce5bfabd287e3b0 (patch) | |
| tree | e3b0facad010c857a7de0cf04dd7ca94bd1e593f | |
| parent | 02ad284eea8714df30ae5c9af61955cb25cd2f2c (diff) | |
video: tegra: dc: suppress a kernel message
The kernel boot message "Could not find panel for ??? node", where ??? is
one of primary, secondary or ternary, has been suppress when it is called
too early by dsi2edp bridge driver before dc_or_node_names[] strings are
set.
bug 1739235
JIRA: EVLR-282
Change-Id: Ie21fd8dc8852f69b53ce96459a1345990dc225da
Signed-off-by: Sungwook Kim <sungwookk@nvidia.com>
Reviewed-on: http://git-master/r/1218414
(cherry picked from commit 9d6b4a0f4a52ff9c3e1fb4ddd35dd91aeb50bdbb)
Reviewed-on: http://git-master/r/1220467
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Tow Wang <toww@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
| -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); |
