From patchwork Mon Aug 15 17:26:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Huewe X-Patchwork-Id: 1068502 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7FHQnui018278 for ; Mon, 15 Aug 2011 17:26:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184Ab1HOR0s (ORCPT ); Mon, 15 Aug 2011 13:26:48 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:40252 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750790Ab1HOR0s (ORCPT ); Mon, 15 Aug 2011 13:26:48 -0400 Received: (qmail invoked by alias); 15 Aug 2011 17:26:42 -0000 Received: from dslb-084-056-030-126.pools.arcor-ip.net (EHLO localhost.localdomain) [84.56.30.126] by mail.gmx.net (mp065) with SMTP; 15 Aug 2011 19:26:42 +0200 X-Authenticated: #12255092 X-Provags-ID: V01U2FsdGVkX18qPaxhWcIqQXxu+kNva34RH0Qq5SJfH0xAa+w9BK hrm88ZoFdEFDDD From: Peter Huewe To: Laurent Pinchart Cc: Nicolas Ferre , Paul Mundt , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, peterhuewe@gmx.de, Stephen Rothwell Subject: [PATCH] video/atmel_lcdfb: Fix build failure/typo for avr32 defconfig Date: Mon, 15 Aug 2011 19:26:30 +0200 Message-Id: <1313429190-29275-1-git-send-email-peterhuewe@gmx.de> X-Mailer: git-send-email 1.7.3.4 X-Y-GMX-Trusted: 0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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]); Mon, 15 Aug 2011 17:26:49 +0000 (UTC) This patch fixes a typo which causes this build failure for the avr32 defconfig: drivers/video/atmel_lcdfb.c:63: error: request for member 'xres_virtual' in something not a structure or union make[3]: *** [drivers/video/atmel_lcdfb.o] Error 1 The typo was introduced by 895607ec "atmel_lcdfb: use display information in info not in var for panning" KernelVersion: Linux-next 20110812 The typo was introduced through the fbdev tree. Signed-off-by: Peter Huewe Reviewed-by: Peter Huewe Acked-by: Wolfram Sang --- So much for compile testing... ;) drivers/video/atmel_lcdfb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 77153c6..63409c1 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -60,7 +60,7 @@ static void atmel_lcdfb_update_dma2d(struct atmel_lcdfb_info *sinfo, pixeloff = (var->xoffset * info->var.bits_per_pixel) & 0x1f; - dma2dcfg = (info-var.xres_virtual - info->var.xres) + dma2dcfg = (info->var.xres_virtual - info->var.xres) * info->var.bits_per_pixel / 8; dma2dcfg |= pixeloff << ATMEL_LCDC_PIXELOFF_OFFSET; lcdc_writel(sinfo, ATMEL_LCDC_DMA2DCFG, dma2dcfg);