aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7790.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-06-11 22:03:59 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-06-13 01:47:34 -0400
commitf9094c526bca3cc50ef7d409c22976fa0f47bbba (patch)
tree5448be10a51e28577793ec5749be12d0add56618 /arch/arm/mach-shmobile/setup-r8a7790.c
parent12dd9752512449f0336b7d64df3871145a28a2fe (diff)
ARM: shmobile: r8a7790: add __initdata on resource and device data
These data will be kmemdup()'ed on platform_device_add_resources() and platform_device_add_data() This patch removed "const" to avoid section type conflict with r8a7790_boards_compat_dt Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7790.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7790.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index b461d93431ed..196bd7325df0 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -30,17 +30,17 @@
30#include <mach/r8a7790.h> 30#include <mach/r8a7790.h>
31#include <asm/mach/arch.h> 31#include <asm/mach/arch.h>
32 32
33static const struct resource pfc_resources[] = { 33static struct resource pfc_resources[] __initdata = {
34 DEFINE_RES_MEM(0xe6060000, 0x250), 34 DEFINE_RES_MEM(0xe6060000, 0x250),
35}; 35};
36 36
37#define R8A7790_GPIO(idx) \ 37#define R8A7790_GPIO(idx) \
38static struct resource r8a7790_gpio##idx##_resources[] = { \ 38static struct resource r8a7790_gpio##idx##_resources[] __initdata = { \
39 DEFINE_RES_MEM(0xe6050000 + 0x1000 * (idx), 0x50), \ 39 DEFINE_RES_MEM(0xe6050000 + 0x1000 * (idx), 0x50), \
40 DEFINE_RES_IRQ(gic_spi(4 + (idx))), \ 40 DEFINE_RES_IRQ(gic_spi(4 + (idx))), \
41}; \ 41}; \
42 \ 42 \
43static struct gpio_rcar_config r8a7790_gpio##idx##_platform_data = { \ 43static struct gpio_rcar_config r8a7790_gpio##idx##_platform_data __initdata = { \
44 .gpio_base = 32 * (idx), \ 44 .gpio_base = 32 * (idx), \
45 .irq_base = 0, \ 45 .irq_base = 0, \
46 .number_of_pins = 32, \ 46 .number_of_pins = 32, \
@@ -103,7 +103,7 @@ void __init r8a7790_pinmux_init(void)
103 103
104enum { SCIFA0, SCIFA1, SCIFB0, SCIFB1, SCIFB2, SCIFA2, SCIF0, SCIF1 }; 104enum { SCIFA0, SCIFA1, SCIFB0, SCIFB1, SCIFB2, SCIFA2, SCIF0, SCIF1 };
105 105
106static const struct plat_sci_port scif[] = { 106static struct plat_sci_port scif[] __initdata = {
107 SCIFA_DATA(SCIFA0, 0xe6c40000, gic_spi(144)), /* SCIFA0 */ 107 SCIFA_DATA(SCIFA0, 0xe6c40000, gic_spi(144)), /* SCIFA0 */
108 SCIFA_DATA(SCIFA1, 0xe6c50000, gic_spi(145)), /* SCIFA1 */ 108 SCIFA_DATA(SCIFA1, 0xe6c50000, gic_spi(145)), /* SCIFA1 */
109 SCIFB_DATA(SCIFB0, 0xe6c20000, gic_spi(148)), /* SCIFB0 */ 109 SCIFB_DATA(SCIFB0, 0xe6c20000, gic_spi(148)), /* SCIFB0 */
@@ -120,11 +120,11 @@ static inline void r8a7790_register_scif(int idx)
120 sizeof(struct plat_sci_port)); 120 sizeof(struct plat_sci_port));
121} 121}
122 122
123static struct renesas_irqc_config irqc0_data = { 123static struct renesas_irqc_config irqc0_data __initdata = {
124 .irq_base = irq_pin(0), /* IRQ0 -> IRQ3 */ 124 .irq_base = irq_pin(0), /* IRQ0 -> IRQ3 */
125}; 125};
126 126
127static struct resource irqc0_resources[] = { 127static struct resource irqc0_resources[] __initdata = {
128 DEFINE_RES_MEM(0xe61c0000, 0x200), /* IRQC Event Detector Block_0 */ 128 DEFINE_RES_MEM(0xe61c0000, 0x200), /* IRQC Event Detector Block_0 */
129 DEFINE_RES_IRQ(gic_spi(0)), /* IRQ0 */ 129 DEFINE_RES_IRQ(gic_spi(0)), /* IRQ0 */
130 DEFINE_RES_IRQ(gic_spi(1)), /* IRQ1 */ 130 DEFINE_RES_IRQ(gic_spi(1)), /* IRQ1 */