diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_pm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c index dcc16927716f..34d591b7d4ef 100644 --- a/drivers/gpu/drm/nouveau/nouveau_pm.c +++ b/drivers/gpu/drm/nouveau/nouveau_pm.c | |||
@@ -284,9 +284,11 @@ nouveau_pm_perflvl_get(struct drm_device *dev, struct nouveau_pm_level *perflvl) | |||
284 | 284 | ||
285 | memset(perflvl, 0, sizeof(*perflvl)); | 285 | memset(perflvl, 0, sizeof(*perflvl)); |
286 | 286 | ||
287 | ret = pm->clocks_get(dev, perflvl); | 287 | if (pm->clocks_get) { |
288 | if (ret) | 288 | ret = pm->clocks_get(dev, perflvl); |
289 | return ret; | 289 | if (ret) |
290 | return ret; | ||
291 | } | ||
290 | 292 | ||
291 | if (pm->voltage.supported && pm->voltage_get) { | 293 | if (pm->voltage.supported && pm->voltage_get) { |
292 | ret = pm->voltage_get(dev); | 294 | ret = pm->voltage_get(dev); |