diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_pm.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_pm.c b/drivers/gpu/drm/nouveau/nv04_pm.c index 35c200eb476c..15e4b9029df8 100644 --- a/drivers/gpu/drm/nouveau/nv04_pm.c +++ b/drivers/gpu/drm/nouveau/nv04_pm.c | |||
@@ -50,7 +50,7 @@ nv04_pm_clock_pre(struct drm_device *dev, u32 id, int khz) | |||
50 | ret = get_pll_limits(dev, id, &state->pll); | 50 | ret = get_pll_limits(dev, id, &state->pll); |
51 | if (ret) { | 51 | if (ret) { |
52 | kfree(state); | 52 | kfree(state); |
53 | return ERR_PTR(ret); | 53 | return (ret == -ENOENT) ? NULL : ERR_PTR(ret); |
54 | } | 54 | } |
55 | 55 | ||
56 | ret = nouveau_calc_pll_mnp(dev, &state->pll, khz, &state->calc); | 56 | ret = nouveau_calc_pll_mnp(dev, &state->pll, khz, &state->calc); |