From patchwork Wed May 28 03:40:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 31028 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C42D2066E for ; Wed, 28 May 2014 03:44:15 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id z6sf44134387yhz.1 for ; Tue, 27 May 2014 20:44:15 -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=wIJBH11lVU1jvAWrGwNiPlRlhZqjQNlCdUDajWqH1mk=; b=M942hcwpSDyEIKEJitW9O0c1ry8eGuIobSgKcE2i0R4eDQFmeI3f05dh29+z6Dy69S iY0iui//lFr8r1/9YMHUyVaAtkh8sAC3BIr89bnUMmaJvx+kL5kdRnIvNS/onXbqBTVE 4M4fktI35V+Dfn/XHtb39U3QPLhHhtTIH38QskB6ero+ICYKqfmzVdXkeDAGydOm4P6g qftMo4bTgh/dYoZBjxDOBsCPwZ48f9naAW54p+hMf1kMaiah/2ionZqjoHKlDuOz9t+l j56yhUDWEg6HV2RbPGEgTz1d6OutGA5qLIqmdtZSQAOguY5swrJbyonBJiRl1ehscC+g NhaA== X-Gm-Message-State: ALoCoQlGW1Z1oJOGymUXiSPHEY8x1QQRG6hVK4cXFLdNL7Yjmv8SQztWwjHjD3uDMCDOhqOTdVSv X-Received: by 10.224.104.2 with SMTP id m2mr15202826qao.7.1401248655312; Tue, 27 May 2014 20:44:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.115 with SMTP id e106ls3410400qgd.65.gmail; Tue, 27 May 2014 20:44:15 -0700 (PDT) X-Received: by 10.52.94.47 with SMTP id cz15mr26534838vdb.0.1401248655130; Tue, 27 May 2014 20:44:15 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id ym12si9653074vdc.19.2014.05.27.20.44.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 20:44:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id jx11so11988397veb.0 for ; Tue, 27 May 2014 20:44:15 -0700 (PDT) X-Received: by 10.52.184.164 with SMTP id ev4mr26474936vdc.15.1401248655045; Tue, 27 May 2014 20:44:15 -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 ib8csp168942vcb; Tue, 27 May 2014 20:44:14 -0700 (PDT) X-Received: by 10.140.87.243 with SMTP id r106mr45491074qgd.75.1401248654497; Tue, 27 May 2014 20:44:14 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id y10si20367593qaj.18.2014.05.27.20.44.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 May 2014 20:44:14 -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 1WpUla-0001OP-BW; Wed, 28 May 2014 03:43:02 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WpUlY-0001Kx-O5 for linux-arm-kernel@lists.infradead.org; Wed, 28 May 2014 03:43:01 +0000 Received: by mail-pa0-f50.google.com with SMTP id fb1so10225297pad.23 for ; Tue, 27 May 2014 20:42:38 -0700 (PDT) X-Received: by 10.66.251.233 with SMTP id zn9mr43019013pac.67.1401248558852; Tue, 27 May 2014 20:42:38 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id y2sm82032841pas.45.2014.05.27.20.42.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 20:42:38 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] ARM: ux500: Staticize ux500_soc_attr Date: Wed, 28 May 2014 09:10:17 +0530 Message-Id: <1401248417-10146-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_204300_829745_B6C4F878 X-CRM114-Status: GOOD ( 10.11 ) 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.50 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, linux-kernel@vger.kernel.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.128.169 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 --- 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)