From d5a15d4a47733db28828ff9a6021207381e545b8 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 10 Oct 2012 15:55:19 +0300 Subject: [PATCH] --- yaml --- r: 344686 b: refs/heads/master c: 96e2e6374385d2219b9011f6bfd0de7221a591d4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/video/omap2/dss/apply.c | 14 + trunk/drivers/video/omap2/dss/dispc-compat.c | 430 ++++++++++++++++++ trunk/drivers/video/omap2/dss/dispc-compat.h | 3 + trunk/drivers/video/omap2/dss/dispc.c | 437 +------------------ trunk/drivers/video/omap2/dss/dss.h | 5 + 6 files changed, 464 insertions(+), 427 deletions(-) diff --git a/[refs] b/[refs] index 7769f48bdd04..8b3964e83202 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 549acbe7a3380dd3bd2ac71698549148ecc0d17e +refs/heads/master: 96e2e6374385d2219b9011f6bfd0de7221a591d4 diff --git a/trunk/drivers/video/omap2/dss/apply.c b/trunk/drivers/video/omap2/dss/apply.c index 0de0d3cf1764..29e11434b7df 100644 --- a/trunk/drivers/video/omap2/dss/apply.c +++ b/trunk/drivers/video/omap2/dss/apply.c @@ -1607,11 +1607,23 @@ int omapdss_compat_init(void) if (r) goto err_mgr_ops; + dispc_runtime_get(); + + r = dss_dispc_initialize_irq(); + if (r) + goto err_init_irq; + + dispc_runtime_put(); + out: mutex_unlock(&compat_init_lock); return 0; +err_init_irq: + dispc_runtime_put(); + dss_uninstall_mgr_ops(); + err_mgr_ops: dss_uninit_overlay_managers(pdev); dss_uninit_overlays(pdev); @@ -1633,6 +1645,8 @@ void omapdss_compat_uninit(void) if (--compat_refcnt > 0) goto out; + dss_dispc_uninitialize_irq(); + dss_uninstall_mgr_ops(); dss_uninit_overlay_managers(pdev); diff --git a/trunk/drivers/video/omap2/dss/dispc-compat.c b/trunk/drivers/video/omap2/dss/dispc-compat.c index 24e1d5e974eb..928884c9a0a9 100644 --- a/trunk/drivers/video/omap2/dss/dispc-compat.c +++ b/trunk/drivers/video/omap2/dss/dispc-compat.c @@ -23,6 +23,8 @@ #include #include #include +#include +#include #include