Commit 0b14cbd2 authored by Imre Deak's avatar Imre Deak Committed by Daniel Vetter

drm/i915: remove dead code from legacy suspend handler

The legacy DRM suspend logic (effective in UMS) doesn't handle any S4 thaw
events so we don't need to care about it either. Only S3 suspend and S4
freeze events are handled. Leave an assert behind to be sure.
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 409ee761
...@@ -640,9 +640,9 @@ int i915_suspend(struct drm_device *dev, pm_message_t state) ...@@ -640,9 +640,9 @@ int i915_suspend(struct drm_device *dev, pm_message_t state)
return -ENODEV; return -ENODEV;
} }
if (state.event == PM_EVENT_PRETHAW) if (WARN_ON_ONCE(state.event != PM_EVENT_SUSPEND &&
return 0; state.event != PM_EVENT_FREEZE))
return -EINVAL;
if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) if (dev->switch_power_state == DRM_SWITCH_POWER_OFF)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment