diff mbox

[15/17,v2] ARM: shmobile: r8a7778: add __initdata on resource and device data

Message ID 87r4gy2xej.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State Superseded
Headers show

Commit Message

Kuninori Morimoto May 23, 2013, 3:22 a.m. UTC
These data will be kmemdup()'ed on
platform_device_add_resources() and platform_device_add_data()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v1 -> v2

 - __initdata was added on all resources

 arch/arm/mach-shmobile/setup-r8a7778.c |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

Comments

Sergei Shtylyov May 23, 2013, 1:07 p.m. UTC | #1
On 23-05-2013 7:22, Kuninori Morimoto wrote:

> These data will be kmemdup()'ed on
> platform_device_add_resources() and platform_device_add_data()

> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

    Ah, you decided to annotate the platform device resources and data 
all in one go, afterwards. I didn't expect this, sorry about my prior mails.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index b0cc4ba..3e128c3 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -57,24 +57,24 @@  static struct plat_sci_port scif_platform_data[] = {
 };
 
 /* TMU */
-static struct resource sh_tmu0_resources[] = {
+static struct resource sh_tmu0_resources[] __initdata = {
 	DEFINE_RES_MEM(0xffd80008, 12),
 	DEFINE_RES_IRQ(gic_iid(0x40)),
 };
 
-static struct sh_timer_config sh_tmu0_platform_data = {
+static struct sh_timer_config sh_tmu0_platform_data __initdata = {
 	.name			= "TMU00",
 	.channel_offset		= 0x4,
 	.timer_bit		= 0,
 	.clockevent_rating	= 200,
 };
 
-static struct resource sh_tmu1_resources[] = {
+static struct resource sh_tmu1_resources[] __initdata = {
 	DEFINE_RES_MEM(0xffd80014, 12),
 	DEFINE_RES_IRQ(gic_iid(0x41)),
 };
 
-static struct sh_timer_config sh_tmu1_platform_data = {
+static struct sh_timer_config sh_tmu1_platform_data __initdata = {
 	.name			= "TMU01",
 	.channel_offset		= 0x10,
 	.timer_bit		= 1,
@@ -90,7 +90,7 @@  static struct sh_timer_config sh_tmu1_platform_data = {
 		sizeof(sh_tmu##idx##_platform_data))
 
 /* Ether */
-static struct resource ether_resources[] = {
+static struct resource ether_resources[] __initdata = {
 	DEFINE_RES_MEM(0xfde00000, 0x400),
 	DEFINE_RES_IRQ(gic_iid(0x89)),
 };
@@ -104,17 +104,17 @@  void __init r8a7778_add_ether_device(struct sh_eth_plat_data *pdata)
 }
 
 /* PFC/GPIO */
-static struct resource pfc_resources[] = {
+static struct resource pfc_resources[] __initdata = {
 	DEFINE_RES_MEM(0xfffc0000, 0x118),
 };
 
 #define R8A7778_GPIO(idx)						\
-static struct resource r8a7778_gpio##idx##_resources[] = {		\
+static struct resource r8a7778_gpio##idx##_resources[] __initdata = {	\
 	DEFINE_RES_MEM(0xffc40000 + 0x1000 * (idx), 0x30),		\
 	DEFINE_RES_IRQ(gic_iid(0x87)),					\
 };									\
 									\
-static struct gpio_rcar_config r8a7778_gpio##idx##_platform_data = {	\
+static struct gpio_rcar_config r8a7778_gpio##idx##_platform_data __initdata = { \
 	.gpio_base	= 32 * (idx),					\
 	.irq_base	= GPIO_IRQ_BASE(idx),				\
 	.number_of_pins	= 32,						\
@@ -150,7 +150,7 @@  void __init r8a7778_pinmux_init(void)
 }
 
 /* SDHI */
-static struct resource sdhi_resources[] = {
+static struct resource sdhi_resources[] __initdata = {
 	/* SDHI0 */
 	DEFINE_RES_MEM(0xFFE4C000, 0x100),
 	DEFINE_RES_IRQ(gic_iid(0x77)),
@@ -174,7 +174,7 @@  void __init r8a7778_sdhi_init(int id,
 }
 
 /* I2C */
-static struct resource i2c_resources[] = {
+static struct resource i2c_resources[] __initdata = {
 	/* I2C0 */
 	DEFINE_RES_MEM(0xffc70000, 0x1000),
 	DEFINE_RES_IRQ(gic_iid(0x63)),
@@ -199,7 +199,7 @@  void __init r8a7778_add_i2c_device(int id)
 }
 
 /* HSPI */
-static struct resource hspi_resources[] = {
+static struct resource hspi_resources[] __initdata = {
 	/* HSPI0 */
 	DEFINE_RES_MEM(0xfffc7000, 0x18),
 	DEFINE_RES_IRQ(gic_iid(0x5f)),
@@ -221,7 +221,7 @@  void __init r8a7778_add_hspi_device(int id)
 }
 
 /* MMC */
-static struct resource mmc_resources[] = {
+static struct resource mmc_resources[] __initdata = {
 	DEFINE_RES_MEM(0xffe4e000, 0x100),
 	DEFINE_RES_IRQ(gic_iid(0x5d)),
 };
@@ -258,12 +258,12 @@  void __init r8a7778_add_standard_devices(void)
 	r8a7778_register_tmu(1);
 }
 
-static struct renesas_intc_irqpin_config irqpin_platform_data = {
+static struct renesas_intc_irqpin_config irqpin_platform_data __initdata = {
 	.irq_base = irq_pin(0), /* IRQ0 -> IRQ3 */
 	.sense_bitfield_width = 2,
 };
 
-static struct resource irqpin_resources[] = {
+static struct resource irqpin_resources[] __initdata = {
 	DEFINE_RES_MEM(0xfe78001c, 4), /* ICR1 */
 	DEFINE_RES_MEM(0xfe780010, 4), /* INTPRI */
 	DEFINE_RES_MEM(0xfe780024, 4), /* INTREQ */