From patchwork Fri May 27 23:23:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Wysocki X-Patchwork-Id: 825722 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4RNMKFX023750 for ; Fri, 27 May 2011 23:22:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757502Ab1E0XWT (ORCPT ); Fri, 27 May 2011 19:22:19 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:35785 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757501Ab1E0XWS (ORCPT ); Fri, 27 May 2011 19:22:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ogre.sisk.pl (Postfix) with ESMTP id 2BFBE1B0450; Sat, 28 May 2011 01:10:03 +0200 (CEST) Received: from ogre.sisk.pl ([127.0.0.1]) by localhost (ogre.sisk.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21694-07; Sat, 28 May 2011 01:09:47 +0200 (CEST) Received: from ferrari.rjw.lan (220-bem-13.acn.waw.pl [82.210.184.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ogre.sisk.pl (Postfix) with ESMTP id 50A4F1AF883; Sat, 28 May 2011 01:09:47 +0200 (CEST) From: "Rafael J. Wysocki" To: linux-sh@vger.kernel.org Subject: [PATCH] Subject: shmobile: Fix build of the LCDC driver Date: Sat, 28 May 2011 01:23:06 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.39+; KDE/4.6.0; x86_64; ; ) Cc: LKML , Guennadi Liakhovetski , Magnus Damm , Paul Mundt MIME-Version: 1.0 Message-Id: <201105280123.06622.rjw@sisk.pl> X-Virus-Scanned: amavisd-new at ogre.sisk.pl using MkS_Vir for Linux 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.6 (demeter2.kernel.org [140.211.167.43]); Fri, 27 May 2011 23:22:21 +0000 (UTC) From: Rafael J. Wysocki The shmobile lcdcfb driver fails to build because of the undefined ret variable in sh_mobile_lcdc_start(). Fix this problem. Signed-off-by: Rafael J. Wysocki --- Hi, I don't know whether this is known or not. In case it isn't, here's a fix. :-) Thanks, Rafael --- drivers/video/sh_mobile_lcdcfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/video/sh_mobile_lcdcfb.c =================================================================== --- linux-2.6.orig/drivers/video/sh_mobile_lcdcfb.c +++ linux-2.6/drivers/video/sh_mobile_lcdcfb.c @@ -616,7 +616,7 @@ static int sh_mobile_lcdc_start(struct s struct sh_mobile_meram_info *mdev; unsigned long icb_addr_y, icb_addr_c; int icb_pitch; - int pf; + int pf, ret; cfg = ch->cfg.meram_cfg; mdev = priv->meram_dev;