From patchwork Thu Mar 31 10:11:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 678931 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2VABd4M027418 for ; Thu, 31 Mar 2011 10:11:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933891Ab1CaKLi (ORCPT ); Thu, 31 Mar 2011 06:11:38 -0400 Received: from na3sys009aog102.obsmtp.com ([74.125.149.69]:37277 "EHLO na3sys009aog102.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933884Ab1CaKLf (ORCPT ); Thu, 31 Mar 2011 06:11:35 -0400 Received: from source ([74.125.82.172]) (using TLSv1) by na3sys009aob102.postini.com ([74.125.148.12]) with SMTP ID DSNKTZRTVtFFWvgXtInRGFTHBv0WsUdEz8L6@postini.com; Thu, 31 Mar 2011 03:11:35 PDT Received: by mail-wy0-f172.google.com with SMTP id 29so1840704wyb.3 for ; Thu, 31 Mar 2011 03:11:34 -0700 (PDT) Received: by 10.216.30.206 with SMTP id k56mr1938458wea.23.1301566294146; Thu, 31 Mar 2011 03:11:34 -0700 (PDT) Received: from deskari (a62-248-146-119.elisa-laajakaista.fi [62.248.146.119]) by mx.google.com with ESMTPS id d6sm429627wer.26.2011.03.31.03.11.32 (version=SSLv3 cipher=OTHER); Thu, 31 Mar 2011 03:11:33 -0700 (PDT) From: Tomi Valkeinen To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Jani Nikula , Tomi Valkeinen Subject: [PATCH 8/9] OMAP: DSS2: OMAPFB: Remove implicit display update on unblank Date: Thu, 31 Mar 2011 13:11:05 +0300 Message-Id: <1301566266-11187-9-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1301566266-11187-1-git-send-email-tomi.valkeinen@ti.com> References: <1301566266-11187-1-git-send-email-tomi.valkeinen@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 31 Mar 2011 10:11:39 +0000 (UTC) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 1b89e28..1f9cb3a 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1271,7 +1271,6 @@ static int omapfb_blank(int blank, struct fb_info *fbi) struct omapfb_info *ofbi = FB2OFB(fbi); struct omapfb2_device *fbdev = ofbi->fbdev; struct omap_dss_device *display = fb2display(fbi); - int do_update = 0; int r = 0; if (!display) @@ -1287,11 +1286,6 @@ static int omapfb_blank(int blank, struct fb_info *fbi) if (display->driver->resume) r = display->driver->resume(display); - if (r == 0 && display->driver->get_update_mode && - display->driver->get_update_mode(display) == - OMAP_DSS_UPDATE_MANUAL) - do_update = 1; - break; case FB_BLANK_NORMAL: @@ -1315,13 +1309,6 @@ static int omapfb_blank(int blank, struct fb_info *fbi) exit: omapfb_unlock(fbdev); - if (r == 0 && do_update && display->driver->update) { - u16 w, h; - display->driver->get_resolution(display, &w, &h); - - r = display->driver->update(display, 0, 0, w, h); - } - return r; }