]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/radeon/kms: fix typo in radeon_compute_pll_gain
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 17 Aug 2010 04:35:45 +0000 (00:35 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:46:20 +0000 (16:46 -0700)
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>
drivers/gpu/drm/radeon/radeon_legacy_crtc.c

index e1e5255396acc3a5c9c9e0a5d01d79adfff2e601..cf3a51fc9851781fd0537bc012958ffbc6a9a23c 100644 (file)
@@ -272,7 +272,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