linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: linux-arm-kernel@lists.infradead.org
Cc: "Tony Lindgren" <tony@atomide.com>,
	"Russell King" <linux@arm.linux.org.uk>,
	"Santosh Shilimkar" <santosh.shilimkar@ti.com>,
	"Kevin Hilman" <khilman@deeprootsystems.com>,
	"Aaro Koskinen" <aaro.koskinen@nokia.com>,
	"Paul Walmsley" <paul@pwsan.com>, "Sanjeev Premi" <premi@ti.com>,
	"Ajay Kumar Gupta" <ajay.gupta@ti.com>,
	"Vikram Pandita" <vikram.pandita@ti.com>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 09/11] ARM: omap: move omap_get_config et al. to .init.text
Date: Fri, 23 Jul 2010 21:58:32 +0200	[thread overview]
Message-ID: <1279915120-4373-9-git-send-email-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <1279915120-4373-1-git-send-email-u.kleine-koenig@pengutronix.de>

All callers of these functions live in .init.text, so these can go there,
too.  There they must not be exported anymore, this is no problem though,
as all callers are always built-in.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/plat-omap/common.c             |    6 ++----
 arch/arm/plat-omap/include/plat/board.h |    4 ++--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
index 219c01e..3737dae 100644
--- a/arch/arm/plat-omap/common.c
+++ b/arch/arm/plat-omap/common.c
@@ -69,17 +69,15 @@ static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out)
 	return kinfo->data;
 }
 
-const void *__omap_get_config(u16 tag, size_t len, int nr)
+const void *__init __omap_get_config(u16 tag, size_t len, int nr)
 {
         return get_config(tag, len, nr, NULL);
 }
-EXPORT_SYMBOL(__omap_get_config);
 
-const void *omap_get_var_config(u16 tag, size_t *len)
+const void *__init omap_get_var_config(u16 tag, size_t *len)
 {
         return get_config(tag, NO_LENGTH_CHECK, 0, len);
 }
-EXPORT_SYMBOL(omap_get_var_config);
 
 /*
  * 32KHz clocksource ... always available, on pretty most chips except
diff --git a/arch/arm/plat-omap/include/plat/board.h b/arch/arm/plat-omap/include/plat/board.h
index 5cd6220..7decf58 100644
--- a/arch/arm/plat-omap/include/plat/board.h
+++ b/arch/arm/plat-omap/include/plat/board.h
@@ -143,14 +143,14 @@ struct omap_board_config_kernel {
 	const void *data;
 };
 
-extern const void *__omap_get_config(u16 tag, size_t len, int nr);
+extern const void *__init __omap_get_config(u16 tag, size_t len, int nr);
 
 #define omap_get_config(tag, type) \
 	((const type *) __omap_get_config((tag), sizeof(type), 0))
 #define omap_get_nr_config(tag, type, nr) \
 	((const type *) __omap_get_config((tag), sizeof(type), (nr)))
 
-extern const void *omap_get_var_config(u16 tag, size_t *len);
+extern const void *__init omap_get_var_config(u16 tag, size_t *len);
 
 extern struct omap_board_config_kernel *omap_board_config;
 extern int omap_board_config_size;
-- 
1.7.1

  parent reply	other threads:[~2010-07-23 19:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1279915120-4373-1-git-send-email-u.kleine-koenig@pengutronix.de>
2010-07-23 19:58 ` [PATCH 04/11] ARM: omap: move omap_init_fb to .init.text Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 05/11] ARM: omap1: nokia770: move mipid_dev_init() " Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 06/11] ARM: omap: move omapfb_reserve_sdram() " Uwe Kleine-König
2010-07-23 21:15   ` Russell King - ARM Linux
2010-07-24  8:51     ` Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 07/11] ARM: omap: move omapfb_reserve_sram() " Uwe Kleine-König
2010-07-23 21:15   ` Russell King - ARM Linux
2010-07-23 19:58 ` [PATCH 08/11] ARM: omap: move get_fbmem_region() " Uwe Kleine-König
2010-07-23 21:16   ` Russell King - ARM Linux
2010-07-23 19:58 ` Uwe Kleine-König [this message]
2010-07-23 19:58 ` [PATCH 10/11] wip: ARM: omap: move omap_board_config_kernel to .init.data Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 11/11] ARM: omap: ams-delta: move config " Uwe Kleine-König

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=1279915120-4373-9-git-send-email-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=aaro.koskinen@nokia.com \
    --cc=ajay.gupta@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=paul@pwsan.com \
    --cc=premi@ti.com \
    --cc=santosh.shilimkar@ti.com \
    --cc=tony@atomide.com \
    --cc=vikram.pandita@ti.com \
    /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).