diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index a84ac05ef048..59de4951b6ee 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -1577,7 +1577,7 @@ igdng_compute_m_n(int bytes_per_pixel, int nlanes, | |||
1577 | 1577 | ||
1578 | temp = (u64) DATA_N * pixel_clock; | 1578 | temp = (u64) DATA_N * pixel_clock; |
1579 | temp = div_u64(temp, link_clock); | 1579 | temp = div_u64(temp, link_clock); |
1580 | m_n->gmch_m = (temp * bytes_per_pixel) / nlanes; | 1580 | m_n->gmch_m = div_u64(temp * bytes_per_pixel, nlanes); |
1581 | m_n->gmch_n = DATA_N; | 1581 | m_n->gmch_n = DATA_N; |
1582 | fdi_reduce_ratio(&m_n->gmch_m, &m_n->gmch_n); | 1582 | fdi_reduce_ratio(&m_n->gmch_m, &m_n->gmch_n); |
1583 | 1583 | ||