linux-hexagon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, rkuo@codeaurora.org,
	linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] hexagon/time: make rtos_timer_device __initdata
Date: Tue, 19 Sep 2017 12:37:21 +0530	[thread overview]
Message-ID: <1505804841-20278-1-git-send-email-bhumirks@gmail.com> (raw)

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


             reply	other threads:[~2017-09-19  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19  7:07 Bhumika Goyal [this message]
2017-09-27 23:23 ` [PATCH] hexagon/time: make rtos_timer_device __initdata Richard Kuo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1505804841-20278-1-git-send-email-bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-hexagon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rkuo@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).