Skip to contentSkip to conversation

hexagon/time: make rtos_timer_device __initdata

PATCH In review Bhumika Goyal 2 participants 2 messages Sep 19, 2017 – Sep 27, 2017 Qualcomm hexagon architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hexagon/time: make rtos_timer_device __initdata

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

---
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(-)
arch/hexagon/kernel/time.c +1 -1
index 29b1f57..5b5a366 100644
@@ -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),
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · 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.

---
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(-)
Signature · 3 lines
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, 
a Linux Foundation Collaborative Project