From patchwork Mon Nov 15 21:43:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Hannemann X-Patchwork-Id: 326482 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 oAFLfeFs028450 for ; Mon, 15 Nov 2010 21:43:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758442Ab0KOVn0 (ORCPT ); Mon, 15 Nov 2010 16:43:26 -0500 Received: from mta-2.ms.rz.RWTH-Aachen.DE ([134.130.7.73]:37934 "EHLO mta-2.ms.rz.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755486Ab0KOVn0 (ORCPT ); Mon, 15 Nov 2010 16:43:26 -0500 Content-transfer-encoding: 7BIT Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-2.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0LBY00LV84CCJEB0@mta-2.ms.rz.RWTH-Aachen.de>; Mon, 15 Nov 2010 22:43:24 +0100 (CET) X-IronPort-AV: E=Sophos; i="4.59,202,1288566000"; d="scan'208"; a="81291170" Received: from smarthost-1.ms.rz.rwth-aachen.de (HELO smarthost.rwth-aachen.de) ([134.130.7.89]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Mon, 15 Nov 2010 22:43:25 +0100 Received: from localhost.localdomain (80-230.eduroam.RWTH-Aachen.DE [134.61.80.230]) by smarthost.rwth-aachen.de (8.14.4+Sun/8.13.8/1) with ESMTP id oAFLhON3023867; Mon, 15 Nov 2010 22:43:24 +0100 (CET) From: Arnd Hannemann To: linux-sh@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Arnd Hannemann Subject: [PATCH] fbdev: sh_mobile_lcdcfb: fix bug in reconfig() Date: Mon, 15 Nov 2010 22:43:22 +0100 Message-id: <1289857402-27180-1-git-send-email-arnd@arndnet.de> X-Mailer: git-send-email 1.7.0.4 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 15 Nov 2010 21:43:27 +0000 (UTC) diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 993be38..7c2c314 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -860,7 +860,7 @@ static void sh_mobile_fb_reconfig(struct fb_info *info) /* Couldn't reconfigure, hopefully, can continue as before */ return; - info->fix.line_length = mode2.xres * (ch->cfg.bpp / 8); + info->fix.line_length = mode1.xres * (ch->cfg.bpp / 8); /* * fb_set_var() calls the notifier change internally, only if @@ -868,7 +868,7 @@ static void sh_mobile_fb_reconfig(struct fb_info *info) * user event, we have to call the chain ourselves. */ event.info = info; - event.data = &mode2; + event.data = &mode1; fb_notifier_call_chain(evnt, &event); }