]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
OMAPDSS: DSSCOMP: Enable compatibility mode
authorArthur Philpott <arthur.philpott@ti.com>
Tue, 2 Apr 2013 16:02:40 +0000 (11:02 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:41:44 +0000 (17:41 -0500)
Initialize compatibility mode for DSSCOMP

Change-Id: Ibb97b38e59ba19bfdc09ec232137bf29e370c247
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
drivers/video/omap2/dsscomp/device.c

index 18f009372a63f7af81dcc5c1d46bcf7f44eef87d..26fbab907d2031fee5ceb40567a4d993d80bc8b3 100755 (executable)
@@ -650,6 +650,7 @@ static const struct file_operations dsscomp_debug_fops = {
 static int dsscomp_probe(struct platform_device *pdev)
 {
        int ret;
+       int r = 0;
        struct dsscomp_dev *cdev = kzalloc(sizeof(*cdev), GFP_KERNEL);
        if (!cdev) {
                pr_err("dsscomp: failed to allocate device.\n");
@@ -680,6 +681,12 @@ static int dsscomp_probe(struct platform_device *pdev)
 #endif
        }
 
+       r = omapdss_compat_init();
+       if (r) {
+               pr_err("dsscomp: compatibility mode not initialized");
+               return r;
+       }
+
        cdev->pdev = &pdev->dev;
        platform_set_drvdata(pdev, cdev);