summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-08-17 00:35:45 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-26 16:41:55 -0700
commitcbe351a4e74013bcf341c05c0e4f29ac9bd65ebc (patch)
tree287a56d1e38a2aa114d00696447eb6b17870bf1c
parent521f4161abe50f2a1d43d6f0f942ea0d316809bb (diff)
downloadlwn-cbe351a4e74013bcf341c05c0e4f29ac9bd65ebc.tar.gz
lwn-cbe351a4e74013bcf341c05c0e4f29ac9bd65ebc.zip
drm/radeon/kms: fix typo in radeon_compute_pll_gain
commit 0537398b211b4f040564beec458e23571042d335 upstream. Looks like this got copied from the ddx wrong. Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
index 22ce4d6015e8..7547ec6418bb 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
@@ -261,7 +261,7 @@ static uint8_t radeon_compute_pll_gain(uint16_t ref_freq, uint16_t ref_div,
if (!ref_div)
return 1;
- vcoFreq = ((unsigned)ref_freq & fb_div) / ref_div;
+ vcoFreq = ((unsigned)ref_freq * fb_div) / ref_div;
/*
* This is horribly crude: the VCO frequency range is divided into