From patchwork Fri Nov 11 12:20:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eric Miao X-Patchwork-Id: 125158 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A132B1007D4 for ; Fri, 11 Nov 2011 23:22:58 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1ROq62-0002aa-UY; Fri, 11 Nov 2011 12:20:38 +0000 Received: from mail-gy0-f177.google.com ([209.85.160.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1ROq5z-0002aQ-Vn for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2011 12:20:36 +0000 Received: by gyf1 with SMTP id 1so3348119gyf.36 for ; Fri, 11 Nov 2011 04:20:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=g/Wj2gyrtZvHQtdlbMyu3jEeIlusckdAr9u/tvwKo+g=; b=DEfJZYjUdgIl4uZAdumShNb5C4hAYTm1EAHobLR1dmAOqj2gjfCXE6XWqI7F092hXr yW6agHPipCxUb4K3JxipdnjlwYTfSVOo3y4Rn7fLOgYuIFHGnMWcLpUGAwiSQSVeP7/w h1YNO7JC/+nmkrH1+xM8G1r6zXIzbaScWroik= Received: by 10.68.199.6 with SMTP id jg6mr20409880pbc.26.1321014033479; Fri, 11 Nov 2011 04:20:33 -0800 (PST) Received: from ycmiao-macbookpro.ericsmarthome.org ([112.65.50.198]) by mx.google.com with ESMTPS id f2sm1261241pbg.14.2011.11.11.04.20.30 (version=SSLv3 cipher=OTHER); Fri, 11 Nov 2011 04:20:32 -0800 (PST) From: Eric Miao To: linux-arm-kernel Subject: [PATCH] ARM: mmp: fix gpio-pxa.h build errors Date: Fri, 11 Nov 2011 20:20:25 +0800 Message-Id: <1321014025-6481-1-git-send-email-eric.y.miao@gmail.com> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (eric.y.miao[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Russell King , Eric Miao X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Fix the build errors as below: In file included from arch/arm/mach-mmp/include/mach/gpio.h:12:0, from arch/arm/include/asm/gpio.h:5, from include/linux/gpio.h:30, from arch/arm/mach-mmp/aspenite.c:11: arch/arm/plat-pxa/include/plat/gpio.h: In function ‘gpio_get_value’: arch/arm/plat-pxa/include/plat/gpio.h:12:21: error: invalid operands to binary & (have ‘void *’ and ‘int’) arch/arm/plat-pxa/include/plat/gpio.h: In function ‘gpio_set_value’: arch/arm/plat-pxa/include/plat/gpio.h:21:15: error: lvalue required as left operand of assignment arch/arm/plat-pxa/include/plat/gpio.h:23:15: error: lvalue required as left operand of assignment Cc: Russell King Signed-off-by: Eric Miao --- arch/arm/mach-mmp/include/mach/gpio-pxa.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-mmp/include/mach/gpio-pxa.h b/arch/arm/mach-mmp/include/mach/gpio-pxa.h index d14eeaf..99b4ce1 100644 --- a/arch/arm/mach-mmp/include/mach/gpio-pxa.h +++ b/arch/arm/mach-mmp/include/mach/gpio-pxa.h @@ -7,7 +7,7 @@ #define GPIO_REGS_VIRT (APB_VIRT_BASE + 0x19000) #define BANK_OFF(n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2)) -#define GPIO_REG(x) (GPIO_REGS_VIRT + (x)) +#define GPIO_REG(x) (*(volatile u32 *)(GPIO_REGS_VIRT + (x))) #define NR_BUILTIN_GPIO IRQ_GPIO_NUM