Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276012
b: refs/heads/master
c: 84b4699
h: refs/heads/master
v: v3
  • Loading branch information
Joonyoung Shim authored and Inki Dae committed Nov 15, 2011
1 parent f1f5504 commit 2ca828f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74ccc539bcebdb24afb74194223f92a96a7285ed
refs/heads/master: 84b46990cb2caf8efe20d5626e1d7e2e40bab832
15 changes: 15 additions & 0 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,18 @@ int exynos_drm_fbdev_reinit(struct drm_device *dev)
fb_helper = private->fb_helper;

if (fb_helper) {
struct list_head temp_list;

INIT_LIST_HEAD(&temp_list);

/*
* fb_helper is reintialized but kernel fb is reused
* so kernel_fb_list need to be backuped and restored
*/
if (!list_empty(&fb_helper->kernel_fb_list))
list_replace_init(&fb_helper->kernel_fb_list,
&temp_list);

drm_fb_helper_fini(fb_helper);

ret = drm_fb_helper_init(dev, fb_helper,
Expand All @@ -414,6 +426,9 @@ int exynos_drm_fbdev_reinit(struct drm_device *dev)
return ret;
}

if (!list_empty(&temp_list))
list_replace(&temp_list, &fb_helper->kernel_fb_list);

ret = drm_fb_helper_single_add_all_connectors(fb_helper);
if (ret < 0) {
DRM_ERROR("failed to add fb helper to connectors\n");
Expand Down

0 comments on commit 2ca828f

Please sign in to comment.