Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344679
b: refs/heads/master
c: 23dfd1a
h: refs/heads/master
i:
  344677: 46eff38
  344675: ba6a96e
  344671: 37c2a48
v: v3
  • Loading branch information
Tomi Valkeinen committed Dec 7, 2012
1 parent 9a4e0ec commit 408f417
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8dd2491a4216778a81668581041ba1c06453ed6c
refs/heads/master: 23dfd1ac87b56652e618fda24b035505c89c4b8c
9 changes: 9 additions & 0 deletions trunk/drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -1469,13 +1469,18 @@ static DEFINE_MUTEX(compat_init_lock);

int omapdss_compat_init(void)
{
struct platform_device *pdev = dss_get_core_pdev();

mutex_lock(&compat_init_lock);

if (compat_refcnt++ > 0)
goto out;

apply_init_priv();

dss_init_overlay_managers(pdev);
dss_init_overlays(pdev);

out:
mutex_unlock(&compat_init_lock);

Expand All @@ -1485,11 +1490,15 @@ EXPORT_SYMBOL(omapdss_compat_init);

void omapdss_compat_uninit(void)
{
struct platform_device *pdev = dss_get_core_pdev();

mutex_lock(&compat_init_lock);

if (--compat_refcnt > 0)
goto out;

dss_uninit_overlay_managers(pdev);
dss_uninit_overlays(pdev);
out:
mutex_unlock(&compat_init_lock);
}
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/video/omap2/dss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ static int __init omap_dss_probe(struct platform_device *pdev)

omapdss_compat_init();

dss_init_overlay_managers(pdev);
dss_init_overlays(pdev);

r = dss_initialize_debugfs();
if (r)
goto err_debugfs;
Expand All @@ -261,9 +258,6 @@ static int omap_dss_remove(struct platform_device *pdev)

dss_uninitialize_debugfs();

dss_uninit_overlays(pdev);
dss_uninit_overlay_managers(pdev);

omapdss_compat_uninit();

return 0;
Expand Down

0 comments on commit 408f417

Please sign in to comment.