summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-04-02 10:01:08 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-07-10 10:37:41 +0200
commit51fe0057cd866d7c1c0c82f722b7cbe429a75b85 (patch)
tree5a99f22c4ad099c25bc71574703d28f44951a577 /arch/arm/mach-ux500
parentcd3de83f147601356395b57a8673e9c5ff1e59d1 (diff)
downloadlinux-51fe0057cd866d7c1c0c82f722b7cbe429a75b85.tar.bz2
ARM: ux500: Staticise ux500_soc_attr
This variable is not used outside of the file that it's declared in, so reduce the scope to the local file. Signed-off-by: Thierry Reding <treding@nvidia.com> [Also add const marker after suggestion from Lee Jones] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r--arch/arm/mach-ux500/cpu.c2
1 files changed, 1 insertions, 1 deletions
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)