Commit 7beff62e authored by Alan Cox's avatar Alan Cox Committed by Dave Airlie

gma500: Fix Poulsbo suspend/resume crash on devices with SDVO ports

Reported-by: default avatarGuillaume Clément <guillaume@baobob.org>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent bc794829
...@@ -197,6 +197,7 @@ static int psb_save_display_registers(struct drm_device *dev) ...@@ -197,6 +197,7 @@ static int psb_save_display_registers(struct drm_device *dev)
} }
list_for_each_entry(connector, &dev->mode_config.connector_list, head) list_for_each_entry(connector, &dev->mode_config.connector_list, head)
if (connector->funcs->save)
connector->funcs->save(connector); connector->funcs->save(connector);
mutex_unlock(&dev->mode_config.mutex); mutex_unlock(&dev->mode_config.mutex);
...@@ -235,6 +236,7 @@ static int psb_restore_display_registers(struct drm_device *dev) ...@@ -235,6 +236,7 @@ static int psb_restore_display_registers(struct drm_device *dev)
crtc->funcs->restore(crtc); crtc->funcs->restore(crtc);
list_for_each_entry(connector, &dev->mode_config.connector_list, head) list_for_each_entry(connector, &dev->mode_config.connector_list, head)
if (connector->funcs->restore)
connector->funcs->restore(connector); connector->funcs->restore(connector);
mutex_unlock(&dev->mode_config.mutex); mutex_unlock(&dev->mode_config.mutex);
......
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