From patchwork Fri Sep 14 21:34:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11443 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 004F823E42 for ; Fri, 14 Sep 2012 21:35:54 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3F1C8A39259 for ; Fri, 14 Sep 2012 21:35:52 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so3512422iaf.11 for ; Fri, 14 Sep 2012 14:35:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=PZNg+w4EAZXlN1JVANdNrix8gQbbgVOxQZpCEpFMj5s=; b=bt7SFvWi5jCw6GCUHQRCSIoEbne8cnPYLlTI4mMDDfl8YstFLfSJSGhAoTV2Oljcup I9TR4hLrgVyGFXyC3SdBatP/OQwwTt40LB4DXv3Inbq0WdT5JTrWHUTaKqrimFPCV3ab pu6cMmKYLBLQgMJVfm3/q8/VEvZ/wUYeKhef/skDXS4T/FlCXyo5QcGA7eHolLpJXMmH xAXH7NaWjaDHgIiT7ZDRBSTp3IuL/pttU5QTjAKcw1fAhhAjsdnyNpamP4b2M+Izh2gJ EsgrjmcgEGOA4NfLp8NtdCss0395bDHtWe2sSC5hy6e10z1nBOEAMfMb9ALk1AaznFmm lwEw== Received: by 10.42.60.139 with SMTP id q11mr3323049ich.53.1347658552042; Fri, 14 Sep 2012 14:35:52 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp215440igc; Fri, 14 Sep 2012 14:35:51 -0700 (PDT) Received: by 10.204.152.216 with SMTP id h24mr2175257bkw.42.1347658550412; Fri, 14 Sep 2012 14:35:50 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.8]) by mx.google.com with ESMTP id hm12si1657744bkc.95.2012.09.14.14.35.49; Fri, 14 Sep 2012 14:35:50 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.8; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MP2NL-1T8WwC0PmJ-005oxQ; Fri, 14 Sep 2012 23:35:27 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Russell King , Nicolas Pitre , Arnd Bergmann , Kukjin Kim , Ben Dooks Subject: [PATCH 18/24] ARM: samsung: use __iomem pointers for MMIO Date: Fri, 14 Sep 2012 23:34:46 +0200 Message-Id: <1347658492-11608-19-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1347658492-11608-1-git-send-email-arnd@arndb.de> References: <1347658492-11608-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:1AY76ZbJrQmexTGTuR4wGqen0ftDpkq1krfdrhJyxi6 Q73ncgnHvJPuW0WAfHZ6uWnzpM5rEshkzsyy9PKeQrma+0LAVu K4GzbuQ6SSPenwfhLaKKrLC0G8/3rfqqwzxqSAvSU9Wiu6xDx5 1+O5fMrGS/OA8wlE35wV8rnAw1JuLU7u+3lFIDc2Sah9QcKTWf sbyeEsMLh7iV56pY5rYhS1zyjbUEeK2KUhIG743gPpktwjwC7Z nfZAbRUty+3X//Fd9gFD52MRfN5mO4uD1KL1ZqFkDmbFoIA8Bx Y0QPYUDVTPfRwFj5umsKc/DwPRi0pzS2yLck3jroybqw3O+jeG tWkHKOp7dgw+Uq/GTLnnRxeqAu3gffT+oh6yRdTVwzthdl6tU1 o3KkdOR7Eeuhw== X-Gm-Message-State: ALoCoQmXcdSHH0LWibvEbkRE0qeNzjAXSDWhGI08vI3+6DRuqoelu0zSOeR0rj2AIfz4foCJOqWL ARM is moving to stricter checks on readl/write functions, so we need to use the correct types everywhere. Cc: Kukjin Kim Cc: Ben Dooks Signed-off-by: Arnd Bergmann --- arch/arm/plat-samsung/s5p-irq-gpioint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-samsung/s5p-irq-gpioint.c b/arch/arm/plat-samsung/s5p-irq-gpioint.c index f9431fe..23557d3 100644 --- a/arch/arm/plat-samsung/s5p-irq-gpioint.c +++ b/arch/arm/plat-samsung/s5p-irq-gpioint.c @@ -24,7 +24,7 @@ #include -#define GPIO_BASE(chip) (((unsigned long)(chip)->base) & 0xFFFFF000u) +#define GPIO_BASE(chip) ((void __iomem *)((unsigned long)((chip)->base) & 0xFFFFF000u)) #define CON_OFFSET 0x700 #define MASK_OFFSET 0x900 @@ -153,7 +153,7 @@ static __init int s5p_gpioint_add(struct samsung_gpio_chip *chip) bank->chips[group - bank->start] = chip; gc = irq_alloc_generic_chip("s5p_gpioint", 1, chip->irq_base, - (void __iomem *)GPIO_BASE(chip), + GPIO_BASE(chip), handle_level_irq); if (!gc) return -ENOMEM;