Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/1] ARM: ux500: Staticize ux500_soc_attr
@ 2014-05-28  3:31 Sachin Kamat
  2014-05-28  7:14 ` Lee Jones
  2014-05-28  9:07 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Sachin Kamat @ 2014-05-28  3:31 UTC (permalink / raw)
  To: linux-arm-kernel

'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 <sachin.kamat@linaro.org>
---
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)
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-28  9:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28  3:31 [PATCH v2 1/1] ARM: ux500: Staticize ux500_soc_attr Sachin Kamat
2014-05-28  7:14 ` Lee Jones
2014-05-28  9:07 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox