summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nv50_pm.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-09-16 10:47:14 +0400
committerBen Skeggs <bskeggs@redhat.com>2010-09-24 10:27:20 +0400
commit6f876986bedf23b40ab707543e88fae7eac27f1f (patch)
tree8b0176d16bc5ea891e1367ef9accda53a753a568 /drivers/gpu/drm/nouveau/nv50_pm.c
parent442b626ece6fbbe7f52c03a09f85ae5755f29eab (diff)
downloadlinux-6f876986bedf23b40ab707543e88fae7eac27f1f.tar.xz
drm/nouveau: allow static performance level setting
Guarded by a module parameter for the moment, read the code for the magic value which enables it. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_pm.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_pm.c b/drivers/gpu/drm/nouveau/nv50_pm.c
index a616e4240346..64bc29c39c3a 100644
--- a/drivers/gpu/drm/nouveau/nv50_pm.c
+++ b/drivers/gpu/drm/nouveau/nv50_pm.c
@@ -80,7 +80,7 @@ nv50_pm_clock_pre(struct drm_device *dev, u32 id, int khz)
ret = get_pll_limits(dev, id, &state->pll);
if (ret < 0) {
kfree(state);
- return ERR_PTR(ret);
+ return (ret == -ENOENT) ? NULL : ERR_PTR(ret);
}
ret = nv50_calc_pll(dev, &state->pll, khz, &state->N, &state->M,