提交 7beff62e 编写于 作者: A Alan Cox 提交者: Dave Airlie

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

Reported-by: NGuillaume Clément <guillaume@baobob.org>
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 bc794829
......@@ -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)
connector->funcs->save(connector);
if (connector->funcs->save)
connector->funcs->save(connector);
mutex_unlock(&dev->mode_config.mutex);
return 0;
......@@ -235,7 +236,8 @@ static int psb_restore_display_registers(struct drm_device *dev)
crtc->funcs->restore(crtc);
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);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册