diff options
author | Sungwook Kim <sungwookk@nvidia.com> | 2014-02-07 06:30:08 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:08:53 -0400 |
commit | 900c5238c228b1f133dcb6d8130550fc823343f9 (patch) | |
tree | cd5943aae41a8f9931bfd1e3f20a7bfee524a8e1 /drivers/video/tegra/dc/dc.c | |
parent | 45562d2d7702717d98b164e6bd75d328f9b3b46d (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.c | 2 |
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 | ||
1513 | unsigned tegra_dc_get_out_max_pixclock(const struct tegra_dc *dc) | 1513 | unsigned 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; |