OMAPDSS: VENC: remove platform_enable/disable calls
authorArchit Taneja <archit@ti.com>
Tue, 20 Nov 2012 09:28:17 +0000 (14:58 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 Apr 2013 12:21:09 +0000 (15:21 +0300)
The platform_enable/disable callbacks in board files for VENC omap_dss_device
instances don't do anything. Hence, we can remove these callbacks from the VENC
driver.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/venc.c

index 006caf3cb509778d472d0a28d528cc3bde16748e..1598d27c28965c7c7007e277e4cfcca39cdabb83 100644 (file)
@@ -519,10 +519,6 @@ int omapdss_venc_display_enable(struct omap_dss_device *dssdev)
                goto err0;
        }
 
-       if (dssdev->platform_enable)
-               dssdev->platform_enable(dssdev);
-
-
        r = venc_power_on(dssdev);
        if (r)
                goto err1;
@@ -533,8 +529,6 @@ int omapdss_venc_display_enable(struct omap_dss_device *dssdev)
 
        return 0;
 err1:
-       if (dssdev->platform_disable)
-               dssdev->platform_disable(dssdev);
        omap_dss_stop_device(dssdev);
 err0:
        mutex_unlock(&venc.venc_lock);
@@ -551,9 +545,6 @@ void omapdss_venc_display_disable(struct omap_dss_device *dssdev)
 
        omap_dss_stop_device(dssdev);
 
-       if (dssdev->platform_disable)
-               dssdev->platform_disable(dssdev);
-
        mutex_unlock(&venc.venc_lock);
 }