|
@@ -1469,6 +1469,8 @@ 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)
|
|
@@ -1476,6 +1478,9 @@ int omapdss_compat_init(void)
|
|
|
|
|
|
apply_init_priv();
|
|
|
|
|
|
+ dss_init_overlay_managers(pdev);
|
|
|
+ dss_init_overlays(pdev);
|
|
|
+
|
|
|
out:
|
|
|
mutex_unlock(&compat_init_lock);
|
|
|
|
|
@@ -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);
|
|
|
}
|