From: Ville Syrjälä Date: Wed, 17 Mar 2010 18:13:44 +0000 (+0200) Subject: OMAP: DSS2: OMAPFB: Skip unnecessary set_overlay_info() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=2ad0c50b84ee984aa58b09b46aef5c9f1d95e469;p=deliverable%2Flinux.git 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ä Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h index cd54fdbfd8bb..c9866be0460a 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, struct omap_overlay_info info; ovl->get_overlay_info(ovl, &info); + if (info.enabled == enable) + return 0; info.enabled = enable; return ovl->set_overlay_info(ovl, &info); }