diff options
author | Andy Whitcroft <apw@canonical.com> | 2009-07-01 15:20:59 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-07-01 18:01:11 -0700 |
commit | 956dba3caaf66b84fe5f6180e0e4dd03902c7980 (patch) | |
tree | e81ff1c3ae6fdd395ffc00be1c53ff17bdb6f579 /drivers/gpu | |
parent | 12682a971160959072c4970da9b7778709f60bc9 (diff) | |
download | op-kernel-dev-956dba3caaf66b84fe5f6180e0e4dd03902c7980.zip op-kernel-dev-956dba3caaf66b84fe5f6180e0e4dd03902c7980.tar.gz |
drm/i915: fix up a raw 64bit divide
We are seeing compilation failures on i386 in some environments due
to an undefined reference as below:
ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined!
This is generated due to a raw 64 bit divide in the i915 driver. Fix up
this raw divide.
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu')
-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 a84ac05..59de495 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, temp = (u64) DATA_N * pixel_clock; temp = div_u64(temp, link_clock); - m_n->gmch_m = (temp * bytes_per_pixel) / nlanes; + m_n->gmch_m = div_u64(temp * bytes_per_pixel, nlanes); m_n->gmch_n = DATA_N; fdi_reduce_ratio(&m_n->gmch_m, &m_n->gmch_n); |