diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index debad5c04cc0..a590d61ff692 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -3273,6 +3273,9 @@ i915_gem_lastclose(struct drm_device *dev) | |||
3273 | { | 3273 | { |
3274 | int ret; | 3274 | int ret; |
3275 | 3275 | ||
3276 | if (drm_core_check_feature(dev, DRIVER_MODESET)) | ||
3277 | return; | ||
3278 | |||
3276 | ret = i915_gem_idle(dev); | 3279 | ret = i915_gem_idle(dev); |
3277 | if (ret) | 3280 | if (ret) |
3278 | DRM_ERROR("failed to idle hardware: %d\n", ret); | 3281 | DRM_ERROR("failed to idle hardware: %d\n", ret); |