Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1734699
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] hexagon/time: make rtos_timer_device __initdata |
| Date | 2017-09-19 09:10 +0200 |
| Message-ID | <urkPo-13s-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] hexagon/time: make rtos_timer_device __initdata Bhumika Goyal <bhumirks@gmail.com> - 2017-09-19 09:10 +0200
csiph-web