Skip to content

Commit

Permalink
OMAPDSS: VENC: remove platform_enable/disable calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Apr 3, 2013
1 parent af9f6c3 commit 77ec05d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/video/omap2/dss/venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit 77ec05d

Please sign in to comment.