From patchwork Tue Jul 5 13:56:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9214305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3688C60752 for ; Tue, 5 Jul 2016 13:58:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28418228C8 for ; Tue, 5 Jul 2016 13:58:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B9E022A63; Tue, 5 Jul 2016 13:58:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B94E223B3 for ; Tue, 5 Jul 2016 13:58:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754843AbcGEN51 (ORCPT ); Tue, 5 Jul 2016 09:57:27 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:39630 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754407AbcGEN5M (ORCPT ); Tue, 5 Jul 2016 09:57:12 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9U00CJSHF9SG10@mailout4.w1.samsung.com>; Tue, 05 Jul 2016 14:57:09 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-90-577bbcb5efec Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id D7.6C.05254.5BCBB775; Tue, 5 Jul 2016 14:57:09 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9U0064YHF3VHB0@eusync1.samsung.com>; Tue, 05 Jul 2016 14:57:09 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz Subject: [PATCH] ARM: SAMSUNG: Constify iomem address passed to s5p_init_cpu Date: Tue, 05 Jul 2016 15:56:54 +0200 Message-id: <1467727014-14684-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAJMWRmVeSWpSXmKPExsVy+t/xy7pb91SHG7Q+5rPYOGM9q8XrF4YW /Y9fM1tsenyN1eLyrjlsFjPO72NyYPPYtKqTzWPzknqPvi2rGD0+b5ILYInisklJzcksSy3S t0vgytjV1stUcI+r4uaX8ywNjLM4uxg5OSQETCS2HJvHDmGLSVy4t56ti5GLQ0hgKaPErScb mSGcRiaJvRtXMoJUsQkYS2xevgSsSkRgL6PEuc3vmUASzAIWElu3rgYaxcEhLOAj8aiLHyTM IqAqsbKvkRXE5hVwl7hw7CvUNjmJk8cms05g5F7AyLCKUTS1NLmgOCk911CvODG3uDQvXS85 P3cTIyQcvuxgXHzM6hCjAAejEg/viYVV4UKsiWXFlbmHGCU4mJVEeP13VYcL8aYkVlalFuXH F5XmpBYfYpTmYFES5527632IkEB6YklqdmpqQWoRTJaJg1OqgTHx7w/jGgEGnyyr2WGd366s a8vYdN3kzrl/i3Lbn25j69rE7m2vf1fcfwnL7Btbfy2o1LC465U7S+nt1zN21savdm2QUTn+ VlB8b88jRZXPPWVdzH/Pnpn17feZCxwvJRRityx6lbgyZVa/o6ZUshpH1Dyd69O4Tu48XWjy NCfvm+9/tpc+FWFKLMUZiYZazEXFiQDwBC52AwIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The iomem passed to s5p_init_cpu is used as read-only. Signed-off-by: Krzysztof Kozlowski --- arch/arm/plat-samsung/cpu.c | 2 +- arch/arm/plat-samsung/include/plat/cpu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-samsung/cpu.c b/arch/arm/plat-samsung/cpu.c index bd12a55401e0..a107b3a0b095 100644 --- a/arch/arm/plat-samsung/cpu.c +++ b/arch/arm/plat-samsung/cpu.c @@ -44,7 +44,7 @@ void __init s3c64xx_init_cpu(void) pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id); } -void __init s5p_init_cpu(void __iomem *cpuid_addr) +void __init s5p_init_cpu(const void __iomem *cpuid_addr) { samsung_cpu_id = readl_relaxed(cpuid_addr); samsung_cpu_rev = samsung_cpu_id & 0xFF; diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h index 4f8a6221dc6d..b7b702a72cac 100644 --- a/arch/arm/plat-samsung/include/plat/cpu.h +++ b/arch/arm/plat-samsung/include/plat/cpu.h @@ -113,7 +113,7 @@ extern void s3c_init_cpu(unsigned long idcode, extern void s3c24xx_init_io(struct map_desc *mach_desc, int size); extern void s3c64xx_init_cpu(void); -extern void s5p_init_cpu(void __iomem *cpuid_addr); +extern void s5p_init_cpu(const void __iomem *cpuid_addr); extern unsigned int samsung_rev(void);