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: 4252441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6AE54BF90B for ; Wed, 28 May 2014 03:36:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E342202B8 for ; Wed, 28 May 2014 03:36:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6174E201DE for ; Wed, 28 May 2014 03:36:57 +0000 (UTC) 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/CqbDN2/Mxvo8IbfdMw0DgTrpCjwVDOrCt5B8coUjLI=; b=bjcHDg9eWgIGZKZKCtzdK4dBafFFIgpZ6JDH2SSnKIcGDkgwZesCzP133gHZFzMdLG t3bXyZ/VmAk5CY8ajFFETPa6Wttsv3hrJ82UBG/VbbbCcQ80K15p1tQYPzJTk5xKNNz+ G870W+vLcsQEdes1WfXT9EzpxIhd+h9VLC4fnNy5mK66yTceZbcYpA8eXfwthbXzK86+ 7+f3RgT8jcrY3tc9ueoO3xzu6ur9ny0nHof2F2N/Rqg1QV5vjWMzT/Uo9pLwRM7Evc27 xC6MpbroM/WisIRS4ikLnqdxd1fqwMxjHCACLlU1JtFY6RkXuDpNS6SnMl4EsdfbMSE2 HJUQ== X-Gm-Message-State: ALoCoQlzDYM+VGl2h+tmVFLwlj0srflBJAAVFVqSCLRm3hU5tH6GXo3uVouGkSsj38w9y/HXM7cT 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 (/) 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP '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)