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,7 +197,8 @@ static int psb_save_display_registers(struct drm_device *dev) ...@@ -197,7 +197,8 @@ 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)
connector->funcs->save(connector); if (connector->funcs->save)
connector->funcs->save(connector);
mutex_unlock(&dev->mode_config.mutex); mutex_unlock(&dev->mode_config.mutex);
return 0; return 0;
...@@ -235,7 +236,8 @@ static int psb_restore_display_registers(struct drm_device *dev) ...@@ -235,7 +236,8 @@ 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)
connector->funcs->restore(connector); if (connector->funcs->restore)
connector->funcs->restore(connector);
mutex_unlock(&dev->mode_config.mutex); mutex_unlock(&dev->mode_config.mutex);
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