linux-hexagon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hexagon/time: make rtos_timer_device __initdata
@ 2017-09-19  7:07 Bhumika Goyal
  2017-09-27 23:23 ` Richard Kuo
  0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2017-09-19  7:07 UTC (permalink / raw)
  To: julia.lawall, rkuo, linux-hexagon, linux-kernel; +Cc: Bhumika Goyal

Make this __initdata as it is only modified during the init phase and
after that the structure and its fields are not referenced anywhere.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
Hexagon architecture was not found while cross-compiling, so the
file is not compile-tested. 

 arch/hexagon/kernel/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/hexagon/kernel/time.c b/arch/hexagon/kernel/time.c
index 29b1f57..5b5a366 100644
--- a/arch/hexagon/kernel/time.c
+++ b/arch/hexagon/kernel/time.c
@@ -54,7 +54,7 @@
 	},
 };
 
-static struct platform_device rtos_timer_device = {
+static struct platform_device rtos_timer_device __initdata = {
 	.name		= "rtos_timer",
 	.id		= -1,
 	.num_resources	= ARRAY_SIZE(rtos_timer_resources),
-- 
1.9.1


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

end of thread, other threads:[~2017-09-27 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19  7:07 [PATCH] hexagon/time: make rtos_timer_device __initdata Bhumika Goyal
2017-09-27 23:23 ` Richard Kuo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).