aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-10 03:26:45 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-12-07 10:06:00 -0500
commita9ee9f08b615f746f31a41a6415712081c1a2865 (patch)
treedf88c096edcff99241371e5338439fd3faef59aa /drivers/video/omap2
parent348be69d306260c9bcb62662c4cf04196a2b9f53 (diff)
OMAPDSS: use omapdss_compat_init() in other drivers
omapdss_compat_init() and omapdss_compat_uninit() is called internally by omapdss. This patch moves the calls to omapfb, omap_vout and omapdrm drivers. omapdrm driver can later remove the call after non-compat support has been implemented in omapdrm. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r--drivers/video/omap2/dss/core.c4
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
index 50817fe18cf7..f8779d4750ba 100644
--- a/drivers/video/omap2/dss/core.c
+++ b/drivers/video/omap2/dss/core.c
@@ -232,8 +232,6 @@ static int __init omap_dss_probe(struct platform_device *pdev)
232 232
233 dss_features_init(omapdss_get_version()); 233 dss_features_init(omapdss_get_version());
234 234
235 omapdss_compat_init();
236
237 r = dss_initialize_debugfs(); 235 r = dss_initialize_debugfs();
238 if (r) 236 if (r)
239 goto err_debugfs; 237 goto err_debugfs;
@@ -258,8 +256,6 @@ static int omap_dss_remove(struct platform_device *pdev)
258 256
259 dss_uninitialize_debugfs(); 257 dss_uninitialize_debugfs();
260 258
261 omapdss_compat_uninit();
262
263 return 0; 259 return 0;
264} 260}
265 261
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 1f60741a7886..4fa9487a8720 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -2425,6 +2425,9 @@ static int __init omapfb_probe(struct platform_device *pdev)
2425 "ignoring the module parameter vrfb=y\n"); 2425 "ignoring the module parameter vrfb=y\n");
2426 } 2426 }
2427 2427
2428 r = omapdss_compat_init();
2429 if (r)
2430 goto err0;
2428 2431
2429 mutex_init(&fbdev->mtx); 2432 mutex_init(&fbdev->mtx);
2430 2433
@@ -2544,6 +2547,7 @@ static int __init omapfb_probe(struct platform_device *pdev)
2544 2547
2545cleanup: 2548cleanup:
2546 omapfb_free_resources(fbdev); 2549 omapfb_free_resources(fbdev);
2550 omapdss_compat_uninit();
2547err0: 2551err0:
2548 dev_err(&pdev->dev, "failed to setup omapfb\n"); 2552 dev_err(&pdev->dev, "failed to setup omapfb\n");
2549 return r; 2553 return r;
@@ -2559,6 +2563,8 @@ static int __exit omapfb_remove(struct platform_device *pdev)
2559 2563
2560 omapfb_free_resources(fbdev); 2564 omapfb_free_resources(fbdev);
2561 2565
2566 omapdss_compat_uninit();
2567
2562 return 0; 2568 return 0;
2563} 2569}
2564 2570