ARM: ux500: Staticise ux500_soc_attr
authorThierry Reding <treding@nvidia.com>
Wed, 2 Apr 2014 08:01:08 +0000 (10:01 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Jul 2014 08:37:41 +0000 (10:37 +0200)
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>
arch/arm/mach-ux500/cpu.c

index db16b5a..dbb2970 100644 (file)
@@ -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)