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: 4252461 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9FC959F336 for ; Wed, 28 May 2014 03:45:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE01B201FE for ; Wed, 28 May 2014 03:45:04 +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 1686F201FB for ; Wed, 28 May 2014 03:45:04 +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 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-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=hqEQNwUdR6Sq1yfY+OlnwBPObMKWXNMtrvUwFhVrkFE=; b=Dpy7GAq+9/WsSrAbZ4KzIwjHnkFsxFIoSb2jqeVvg5tFWX997dHZCaYmn/VxcTq9eX ZnQtKhN6DjfYcpgHG2uiEnbichZuTKg0hRR9EDPWcb6Ed6R35yf4k6pOzE8YT2l34h5B rMZnjRDuYx/24WzH8eAszpzhQq7mW0/RI1I398aMEIRfByU7Wu6JJYuxIGErdgdI0mOJ 77Yj2uNu33G+mw2XUPMB3jAAfms+ak0pcF/Spt4c9/YiJLrUlD7lWkNSoE5Ep2D38sWn X/fA46/pHw6e88qgHZSoWZ/E0E17oFmLxlHQ0VoN/sjJKXoehs49q/eXjLW4YdT03VwU sfdQ== X-Gm-Message-State: ALoCoQmWlORmYrFIMzYgLYeiCPRhL6T41uEb/7vriam7WT+kbMeuMyLzURysx2BOxUrcHCoJ9zk+ 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 (/) 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+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 --- 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)