summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Novotný <noviktor@seznam.cz>2012-11-10 22:24:06 +0400
committerBen Skeggs <bskeggs@redhat.com>2012-11-29 03:56:35 +0400
commit1f2285d462c02ef9b82ee9c553a31884c23994f0 (patch)
tree846246b6e81bfa1d5d27000114622ef7865f7339
parentfced4b221177f48743a1ea29ad3f592da1215d87 (diff)
downloadlinux-1f2285d462c02ef9b82ee9c553a31884c23994f0.tar.xz
drm/nouveau/clk: fix crystal frequency retrieval on nv25
Signed-off-by: Viktor Novotný <noviktor@seznam.cz> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/device/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/base.c b/drivers/gpu/drm/nouveau/core/subdev/device/base.c
index ca9a4648bd8a..9baef4656a54 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/device/base.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/device/base.c
@@ -208,7 +208,7 @@ nouveau_devobj_ctor(struct nouveau_object *parent,
/* determine frequency of timing crystal */
if ( device->chipset < 0x17 ||
- (device->chipset >= 0x20 && device->chipset <= 0x25))
+ (device->chipset >= 0x20 && device->chipset < 0x25))
strap &= 0x00000040;
else
strap &= 0x00400040;