summaryrefslogtreecommitdiffstats
path: root/drivers/video/tegra/dc/dc.c
diff options
context:
space:
mode:
authorSungwook Kim <sungwookk@nvidia.com>2014-02-07 06:30:08 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:08:53 -0400
commit900c5238c228b1f133dcb6d8130550fc823343f9 (patch)
treecd5943aae41a8f9931bfd1e3f20a7bfee524a8e1 /drivers/video/tegra/dc/dc.c
parent45562d2d7702717d98b164e6bd75d328f9b3b46d (diff)
video: tegra: DC: fix a division by zero exception
Fix the division by zero exception during system boot up from the routine tegra_dc_calc_min_bandwidth() called by tegra_dc_probe(). This will set the default min bandwidth to 540MHz for T124 eDP display port. bug 1451011 Change-Id: I410bb1707b88216e2c3d5298c7f65649c5a5cc43 Signed-off-by: Sungwook Kim <sungwookk@nvidia.com> Reviewed-on: http://git-master/r/364887 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dc.c')
-rw-r--r--drivers/video/tegra/dc/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index f5ef60515..cdd393c16 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1512,7 +1512,7 @@ EXPORT_SYMBOL(tegra_dc_get_out_width);
1512 1512
1513unsigned tegra_dc_get_out_max_pixclock(const struct tegra_dc *dc) 1513unsigned tegra_dc_get_out_max_pixclock(const struct tegra_dc *dc)
1514{ 1514{
1515 if (dc->out && dc->out->max_pixclock) 1515 if (dc && dc->out)
1516 return dc->out->max_pixclock; 1516 return dc->out->max_pixclock;
1517 else 1517 else
1518 return 0; 1518 return 0;