From patchwork Wed May 28 03:31:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 31026 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 579C8203C3 for ; Wed, 28 May 2014 03:36:10 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wm4sf51290151obc.2 for ; Tue, 27 May 2014 20:36:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=vUQ3osv7j2VUjJcmbwdorPHPJ3zy4AAL+n5/fOH6WeE=; b=khoobiorKPwk0B3gipu3BanraRoNYM549OBC9mgczlOro6+a0e6EyXY+1vu2eS8Ukc N8CgWZrXsw1XzCxzaYvFOqbbHwWk2J0UK1FcNH+cvtrCzw8Pz/lPR64JkTm87naoX2PI KNwj8nLtP1HxLqdCoZMbdnb14un+waOS/eot/gobIamd1NFton+IU+gXNsmVAiQ1vTPj xzmF4zlze0VfLJ2ka0wVCXJ2rIGKWds7sW8cSS/31SNBrbSKhYvMfPk/8ogP++GqIc8K JsnWalzD18BGr1zKR1kB0H7c5fUZZ4TgKjWM1FS5GQ+m3vpzJgNEFmn8GhIyG2n7dYuL snhQ== X-Gm-Message-State: ALoCoQmmpliNgrPscPUXKrW7m9qtOP49gI8mtdFWqvo0agKeCz+Bq1GR7ve1DlItiW3+xIGWbZsl X-Received: by 10.182.28.102 with SMTP id a6mr15758862obh.44.1401248169740; Tue, 27 May 2014 20:36:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.4 with SMTP id 4ls3315709qgy.39.gmail; Tue, 27 May 2014 20:36:09 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr31706230vcg.16.1401248169630; Tue, 27 May 2014 20:36:09 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id qe9si9649710vcb.79.2014.05.27.20.36.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 20:36:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id im17so11561272vcb.24 for ; Tue, 27 May 2014 20:36:09 -0700 (PDT) X-Received: by 10.220.103.141 with SMTP id k13mr31620360vco.25.1401248169498; Tue, 27 May 2014 20:36:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp168582vcb; Tue, 27 May 2014 20:36:09 -0700 (PDT) X-Received: by 10.229.70.196 with SMTP id e4mr48936266qcj.16.1401248168997; Tue, 27 May 2014 20:36:08 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id h7si20336393qan.34.2014.05.27.20.36.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 May 2014 20:36:08 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WpUdN-00063y-OP; Wed, 28 May 2014 03:34:33 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WpUdL-00060Y-QS for linux-arm-kernel@lists.infradead.org; Wed, 28 May 2014 03:34:32 +0000 Received: by mail-pa0-f43.google.com with SMTP id hz1so10269979pad.30 for ; Tue, 27 May 2014 20:34:10 -0700 (PDT) X-Received: by 10.66.145.233 with SMTP id sx9mr18724609pab.151.1401248050386; Tue, 27 May 2014 20:34:10 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id ox3sm25724515pbb.88.2014.05.27.20.34.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 20:34:09 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/1] ARM: ux500: Staticize ux500_soc_attr Date: Wed, 28 May 2014 09:01:47 +0530 Message-Id: <1401247907-8366-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140527_203431_870830_16778E2A X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.43 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Cc: sachin.kamat@linaro.org, linux@arm.linux.org.uk, linus.walleij@linaro.org, lee.jones@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 'ux500_soc_attr' is local to this file. While at it also make it const to match the argument list of device_create_file. Signed-off-by: Sachin Kamat Acked-by: Lee Jones --- Made ux500_soc_attr const as suggested by Lee Jones. --- arch/arm/mach-ux500/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c index db16b5a04ad5..dbb2970ee7da 100644 --- a/arch/arm/mach-ux500/cpu.c +++ b/arch/arm/mach-ux500/cpu.c @@ -125,7 +125,7 @@ static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, soc_dev_attr->revision = ux500_get_revision(); } -struct device_attribute ux500_soc_attr = +static const struct device_attribute ux500_soc_attr = __ATTR(process, S_IRUGO, ux500_get_process, NULL); struct device * __init ux500_soc_device_init(const char *soc_id)