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>
Esse commit está contido em:
@@ -2425,6 +2425,9 @@ static int __init omapfb_probe(struct platform_device *pdev)
|
||||
"ignoring the module parameter vrfb=y\n");
|
||||
}
|
||||
|
||||
r = omapdss_compat_init();
|
||||
if (r)
|
||||
goto err0;
|
||||
|
||||
mutex_init(&fbdev->mtx);
|
||||
|
||||
@@ -2544,6 +2547,7 @@ static int __init omapfb_probe(struct platform_device *pdev)
|
||||
|
||||
cleanup:
|
||||
omapfb_free_resources(fbdev);
|
||||
omapdss_compat_uninit();
|
||||
err0:
|
||||
dev_err(&pdev->dev, "failed to setup omapfb\n");
|
||||
return r;
|
||||
@@ -2559,6 +2563,8 @@ static int __exit omapfb_remove(struct platform_device *pdev)
|
||||
|
||||
omapfb_free_resources(fbdev);
|
||||
|
||||
omapdss_compat_uninit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Referência em uma nova issue
Block a user