diff options
author | Ville Syrjälä <ville.syrjala@nokia.com> | 2010-03-17 14:13:44 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-03 08:18:46 -0400 |
commit | 2ad0c50b84ee984aa58b09b46aef5c9f1d95e469 (patch) | |
tree | 6d3c9ef9eec3aaf64c099317a3fce0442e5055ee /drivers/video | |
parent | 276a1d4337c9c261f42d5a7f813d96ca18f67c2b (diff) |
OMAP: DSS2: OMAPFB: Skip unnecessary set_overlay_info()
In omapfb_enable_overlay() if the overlay state is already what we want
skip the set_overlay_info().
Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h index cd54fdbfd8b..c9866be0460 100644 --- a/drivers/video/omap2/omapfb/omapfb.h +++ b/drivers/video/omap2/omapfb/omapfb.h | |||
@@ -148,6 +148,8 @@ static inline int omapfb_overlay_enable(struct omap_overlay *ovl, | |||
148 | struct omap_overlay_info info; | 148 | struct omap_overlay_info info; |
149 | 149 | ||
150 | ovl->get_overlay_info(ovl, &info); | 150 | ovl->get_overlay_info(ovl, &info); |
151 | if (info.enabled == enable) | ||
152 | return 0; | ||
151 | info.enabled = enable; | 153 | info.enabled = enable; |
152 | return ovl->set_overlay_info(ovl, &info); | 154 | return ovl->set_overlay_info(ovl, &info); |
153 | } | 155 | } |