aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-shmobile/board-lager.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c
index 4047fac811c0..afd51375075f 100644
--- a/arch/arm/mach-shmobile/board-lager.c
+++ b/arch/arm/mach-shmobile/board-lager.c
@@ -55,7 +55,7 @@ static struct gpio_led lager_leds[] = {
55 }, 55 },
56}; 56};
57 57
58static __initdata struct gpio_led_platform_data lager_leds_pdata = { 58static const struct gpio_led_platform_data lager_leds_pdata __initconst = {
59 .leds = lager_leds, 59 .leds = lager_leds,
60 .num_leds = ARRAY_SIZE(lager_leds), 60 .num_leds = ARRAY_SIZE(lager_leds),
61}; 61};
@@ -71,7 +71,7 @@ static struct gpio_keys_button gpio_buttons[] = {
71 GPIO_KEY(KEY_1, RCAR_GP_PIN(1, 14), "SW2-pin1"), 71 GPIO_KEY(KEY_1, RCAR_GP_PIN(1, 14), "SW2-pin1"),
72}; 72};
73 73
74static __initdata struct gpio_keys_platform_data lager_keys_pdata = { 74static const struct gpio_keys_platform_data lager_keys_pdata __initconst = {
75 .buttons = gpio_buttons, 75 .buttons = gpio_buttons,
76 .nbuttons = ARRAY_SIZE(gpio_buttons), 76 .nbuttons = ARRAY_SIZE(gpio_buttons),
77}; 77};
@@ -83,24 +83,24 @@ static struct regulator_consumer_supply fixed3v3_power_consumers[] =
83}; 83};
84 84
85/* MMCIF */ 85/* MMCIF */
86static struct sh_mmcif_plat_data mmcif1_pdata __initdata = { 86static const struct sh_mmcif_plat_data mmcif1_pdata __initconst = {
87 .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE, 87 .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
88}; 88};
89 89
90static struct resource mmcif1_resources[] __initdata = { 90static const struct resource mmcif1_resources[] __initconst = {
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};
94 94
95/* Ether */ 95/* Ether */
96static struct sh_eth_plat_data ether_pdata __initdata = { 96static const struct sh_eth_plat_data ether_pdata __initconst = {
97 .phy = 0x1, 97 .phy = 0x1,
98 .edmac_endian = EDMAC_LITTLE_ENDIAN, 98 .edmac_endian = EDMAC_LITTLE_ENDIAN,
99 .phy_interface = PHY_INTERFACE_MODE_RMII, 99 .phy_interface = PHY_INTERFACE_MODE_RMII,
100 .ether_link_active_low = 1, 100 .ether_link_active_low = 1,
101}; 101};
102 102
103static struct resource ether_resources[] __initdata = { 103static const struct resource ether_resources[] __initconst = {
104 DEFINE_RES_MEM(0xee700000, 0x400), 104 DEFINE_RES_MEM(0xee700000, 0x400),
105 DEFINE_RES_IRQ(gic_spi(162)), 105 DEFINE_RES_IRQ(gic_spi(162)),
106}; 106};
@@ -155,7 +155,7 @@ static void __init lager_add_standard_devices(void)
155 &ether_pdata, sizeof(ether_pdata)); 155 &ether_pdata, sizeof(ether_pdata));
156} 156}
157 157
158static const char *lager_boards_compat_dt[] __initdata = { 158static const char * const lager_boards_compat_dt[] __initconst = {
159 "renesas,lager", 159 "renesas,lager",
160 NULL, 160 NULL,
161}; 161};