diff options
| -rw-r--r-- | arch/arm/mach-shmobile/board-ape6evm.c | 18 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/board-lager.c | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index db97460665d5..38c6c733fabf 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c | |||
| @@ -98,7 +98,7 @@ static struct regulator_consumer_supply dummy_supplies[] = { | |||
| 98 | }; | 98 | }; |
| 99 | 99 | ||
| 100 | /* SMSC LAN9220 */ | 100 | /* SMSC LAN9220 */ |
| 101 | static const struct resource lan9220_res[] = { | 101 | static const struct resource lan9220_res[] __initconst = { |
| 102 | DEFINE_RES_MEM(0x08000000, 0x1000), | 102 | DEFINE_RES_MEM(0x08000000, 0x1000), |
| 103 | { | 103 | { |
| 104 | .start = irq_pin(40), /* IRQ40 */ | 104 | .start = irq_pin(40), /* IRQ40 */ |
| @@ -106,7 +106,7 @@ static const struct resource lan9220_res[] = { | |||
| 106 | }, | 106 | }, |
| 107 | }; | 107 | }; |
| 108 | 108 | ||
| 109 | static const struct smsc911x_platform_config lan9220_data = { | 109 | static const struct smsc911x_platform_config lan9220_data __initconst = { |
| 110 | .flags = SMSC911X_USE_32BIT, | 110 | .flags = SMSC911X_USE_32BIT, |
| 111 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | 111 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, |
| 112 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH, | 112 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH, |
| @@ -127,39 +127,39 @@ static struct regulator_consumer_supply fixed3v3_power_consumers[] = | |||
| 127 | }; | 127 | }; |
| 128 | 128 | ||
| 129 | /* MMCIF */ | 129 | /* MMCIF */ |
| 130 | static struct sh_mmcif_plat_data mmcif0_pdata = { | 130 | static const struct sh_mmcif_plat_data mmcif0_pdata __initconst = { |
| 131 | .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, | 131 | .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, |
| 132 | }; | 132 | }; |
| 133 | 133 | ||
| 134 | static struct resource mmcif0_resources[] = { | 134 | static const struct resource mmcif0_resources[] __initconst = { |
| 135 | DEFINE_RES_MEM_NAMED(0xee200000, 0x100, "MMCIF0"), | 135 | DEFINE_RES_MEM_NAMED(0xee200000, 0x100, "MMCIF0"), |
| 136 | DEFINE_RES_IRQ(gic_spi(169)), | 136 | DEFINE_RES_IRQ(gic_spi(169)), |
| 137 | }; | 137 | }; |
| 138 | 138 | ||
| 139 | /* SDHI0 */ | 139 | /* SDHI0 */ |
| 140 | static struct sh_mobile_sdhi_info sdhi0_pdata = { | 140 | static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = { |
| 141 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, | 141 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, |
| 142 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ, | 142 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ, |
| 143 | }; | 143 | }; |
| 144 | 144 | ||
| 145 | static struct resource sdhi0_resources[] = { | 145 | static const struct resource sdhi0_resources[] __initconst = { |
| 146 | DEFINE_RES_MEM_NAMED(0xee100000, 0x100, "SDHI0"), | 146 | DEFINE_RES_MEM_NAMED(0xee100000, 0x100, "SDHI0"), |
| 147 | DEFINE_RES_IRQ(gic_spi(165)), | 147 | DEFINE_RES_IRQ(gic_spi(165)), |
| 148 | }; | 148 | }; |
| 149 | 149 | ||
| 150 | /* SDHI1 */ | 150 | /* SDHI1 */ |
| 151 | static struct sh_mobile_sdhi_info sdhi1_pdata = { | 151 | static const struct sh_mobile_sdhi_info sdhi1_pdata __initconst = { |
| 152 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, | 152 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, |
| 153 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | | 153 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | |
| 154 | MMC_CAP_NEEDS_POLL, | 154 | MMC_CAP_NEEDS_POLL, |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | static struct resource sdhi1_resources[] = { | 157 | static const struct resource sdhi1_resources[] __initconst = { |
| 158 | DEFINE_RES_MEM_NAMED(0xee120000, 0x100, "SDHI1"), | 158 | DEFINE_RES_MEM_NAMED(0xee120000, 0x100, "SDHI1"), |
| 159 | DEFINE_RES_IRQ(gic_spi(166)), | 159 | DEFINE_RES_IRQ(gic_spi(166)), |
| 160 | }; | 160 | }; |
| 161 | 161 | ||
| 162 | static const struct pinctrl_map ape6evm_pinctrl_map[] = { | 162 | static const struct pinctrl_map ape6evm_pinctrl_map[] __initconst = { |
| 163 | /* SCIFA0 console */ | 163 | /* SCIFA0 console */ |
| 164 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a73a4", | 164 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a73a4", |
| 165 | "scifa0_data", "scifa0"), | 165 | "scifa0_data", "scifa0"), |
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 79151532ef04..b161379a00f5 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c | |||
| @@ -83,11 +83,11 @@ static struct regulator_consumer_supply fixed3v3_power_consumers[] = | |||
| 83 | }; | 83 | }; |
| 84 | 84 | ||
| 85 | /* MMCIF */ | 85 | /* MMCIF */ |
| 86 | static struct sh_mmcif_plat_data mmcif1_pdata = { | 86 | static struct sh_mmcif_plat_data mmcif1_pdata __initdata = { |
| 87 | .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, | 87 | .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, |
| 88 | }; | 88 | }; |
| 89 | 89 | ||
| 90 | static struct resource mmcif1_resources[] = { | 90 | static struct resource mmcif1_resources[] __initdata = { |
| 91 | DEFINE_RES_MEM_NAMED(0xee220000, 0x80, "MMCIF1"), | 91 | DEFINE_RES_MEM_NAMED(0xee220000, 0x80, "MMCIF1"), |
| 92 | DEFINE_RES_IRQ(gic_spi(170)), | 92 | DEFINE_RES_IRQ(gic_spi(170)), |
| 93 | }; | 93 | }; |
