Skip to contentSkip to conversation

ARM: ux500: Staticise ux500_soc_attr

PATCH New Thierry Reding 2 participants 2 messages Apr 2, 2014 – Apr 3, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/mach-ux500/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-ux500/cpu.c +1 -1
index db16b5a04ad5..4dfa04a96f4d 100644
@@ -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 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)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARM: ux500: Staticise ux500_soc_attr

Quoted 4 lines · Thierry Reding

This variable is not used outside of the file that it's declared in, so reduce the scope to the local file.

Patch applied to the ux500 tree.

Yours,
Linus Walleij