aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>2012-02-10 11:48:43 -0500
committerTony Lindgren <tony@atomide.com>2012-03-01 18:20:26 -0500
commitda564a05b3aefe403062411b67d64b7e992718f7 (patch)
tree3f075ad74fbd4e4f843072cb887ef1a2d573ac01
parentdc0caefdf48713fce373c8663e5a0d292a424746 (diff)
ARM: OMAP1: ams-delta: clean up init data section assignments
The main purpose of this patch is to fix several section mismatch warnings from the board file and a few board specific drivers, introduced with recent Amstrad Delta patch series, some of them rising up only when building with CONFIG_MODULES not set. While being at it, section tagging of all init data found in the board file have been revised and hopefully corrected and/or optimized. Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap1/board-ams-delta.c18
-rw-r--r--drivers/input/serio/ams_delta_serio.c2
-rw-r--r--drivers/mtd/nand/ams-delta.c2
-rw-r--r--drivers/video/omap/lcd_ams_delta.c2
4 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index 3c97e6400546..ce50fe137269 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -150,7 +150,7 @@ static struct map_desc ams_delta_io_desc[] __initdata = {
150 } 150 }
151}; 151};
152 152
153static struct omap_lcd_config ams_delta_lcd_config = { 153static struct omap_lcd_config ams_delta_lcd_config __initdata = {
154 .ctrl_name = "internal", 154 .ctrl_name = "internal",
155}; 155};
156 156
@@ -167,7 +167,7 @@ static struct omap_board_config_kernel ams_delta_config[] __initdata = {
167#define LATCH1_GPIO_BASE 232 167#define LATCH1_GPIO_BASE 232
168#define LATCH1_NGPIO 8 168#define LATCH1_NGPIO 8
169 169
170static struct resource latch1_resources[] __initconst = { 170static struct resource latch1_resources[] = {
171 [0] = { 171 [0] = {
172 .name = "dat", 172 .name = "dat",
173 .start = LATCH1_PHYS, 173 .start = LATCH1_PHYS,
@@ -176,7 +176,7 @@ static struct resource latch1_resources[] __initconst = {
176 }, 176 },
177}; 177};
178 178
179static struct bgpio_pdata latch1_pdata __initconst = { 179static struct bgpio_pdata latch1_pdata = {
180 .base = LATCH1_GPIO_BASE, 180 .base = LATCH1_GPIO_BASE,
181 .ngpio = LATCH1_NGPIO, 181 .ngpio = LATCH1_NGPIO,
182}; 182};
@@ -191,7 +191,7 @@ static struct platform_device latch1_gpio_device = {
191 }, 191 },
192}; 192};
193 193
194static struct resource latch2_resources[] __initconst = { 194static struct resource latch2_resources[] = {
195 [0] = { 195 [0] = {
196 .name = "dat", 196 .name = "dat",
197 .start = LATCH2_PHYS, 197 .start = LATCH2_PHYS,
@@ -200,7 +200,7 @@ static struct resource latch2_resources[] __initconst = {
200 }, 200 },
201}; 201};
202 202
203static struct bgpio_pdata latch2_pdata __initconst = { 203static struct bgpio_pdata latch2_pdata = {
204 .base = AMS_DELTA_LATCH2_GPIO_BASE, 204 .base = AMS_DELTA_LATCH2_GPIO_BASE,
205 .ngpio = AMS_DELTA_LATCH2_NGPIO, 205 .ngpio = AMS_DELTA_LATCH2_NGPIO,
206}; 206};
@@ -215,7 +215,7 @@ static struct platform_device latch2_gpio_device = {
215 }, 215 },
216}; 216};
217 217
218static struct gpio latch_gpios[] __initconst = { 218static const struct gpio latch_gpios[] __initconst = {
219 { 219 {
220 .gpio = LATCH1_GPIO_BASE + 6, 220 .gpio = LATCH1_GPIO_BASE + 6,
221 .flags = GPIOF_OUT_INIT_LOW, 221 .flags = GPIOF_OUT_INIT_LOW,
@@ -322,7 +322,7 @@ static struct platform_device ams_delta_lcd_device = {
322 .id = -1, 322 .id = -1,
323}; 323};
324 324
325static struct gpio_led gpio_leds[] __initconst = { 325static const struct gpio_led gpio_leds[] __initconst = {
326 { 326 {
327 .name = "camera", 327 .name = "camera",
328 .gpio = LATCH1_GPIO_BASE + 0, 328 .gpio = LATCH1_GPIO_BASE + 0,
@@ -358,7 +358,7 @@ static struct gpio_led gpio_leds[] __initconst = {
358 }, 358 },
359}; 359};
360 360
361static struct gpio_led_platform_data leds_pdata __initconst = { 361static const struct gpio_led_platform_data leds_pdata __initconst = {
362 .leds = gpio_leds, 362 .leds = gpio_leds,
363 .num_leds = ARRAY_SIZE(gpio_leds), 363 .num_leds = ARRAY_SIZE(gpio_leds),
364}; 364};
@@ -415,7 +415,7 @@ static struct platform_device *ams_delta_devices[] __initdata = {
415 &ams_delta_camera_device, 415 &ams_delta_camera_device,
416}; 416};
417 417
418static struct platform_device *late_devices[] __initconst = { 418static struct platform_device *late_devices[] __initdata = {
419 &ams_delta_nand_device, 419 &ams_delta_nand_device,
420 &ams_delta_lcd_device, 420 &ams_delta_lcd_device,
421}; 421};
diff --git a/drivers/input/serio/ams_delta_serio.c b/drivers/input/serio/ams_delta_serio.c
index 0571e2ec358b..bd5b10eeeb40 100644
--- a/drivers/input/serio/ams_delta_serio.c
+++ b/drivers/input/serio/ams_delta_serio.c
@@ -103,7 +103,7 @@ static void ams_delta_serio_close(struct serio *serio)
103 gpio_set_value(AMS_DELTA_GPIO_PIN_KEYBRD_PWR, 0); 103 gpio_set_value(AMS_DELTA_GPIO_PIN_KEYBRD_PWR, 0);
104} 104}
105 105
106static struct gpio ams_delta_gpios[] __initconst_or_module = { 106static const struct gpio ams_delta_gpios[] __initconst_or_module = {
107 { 107 {
108 .gpio = AMS_DELTA_GPIO_PIN_KEYBRD_DATA, 108 .gpio = AMS_DELTA_GPIO_PIN_KEYBRD_DATA,
109 .flags = GPIOF_DIR_IN, 109 .flags = GPIOF_DIR_IN,
diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-delta.c
index 85934dc8546f..73416951f4c1 100644
--- a/drivers/mtd/nand/ams-delta.c
+++ b/drivers/mtd/nand/ams-delta.c
@@ -145,7 +145,7 @@ static int ams_delta_nand_ready(struct mtd_info *mtd)
145 return gpio_get_value(AMS_DELTA_GPIO_PIN_NAND_RB); 145 return gpio_get_value(AMS_DELTA_GPIO_PIN_NAND_RB);
146} 146}
147 147
148static struct gpio _mandatory_gpio[] __initconst_or_module = { 148static const struct gpio _mandatory_gpio[] = {
149 { 149 {
150 .gpio = AMS_DELTA_GPIO_PIN_NAND_NCE, 150 .gpio = AMS_DELTA_GPIO_PIN_NAND_NCE,
151 .flags = GPIOF_OUT_INIT_HIGH, 151 .flags = GPIOF_OUT_INIT_HIGH,
diff --git a/drivers/video/omap/lcd_ams_delta.c b/drivers/video/omap/lcd_ams_delta.c
index 0e71e2898b18..d3a311327227 100644
--- a/drivers/video/omap/lcd_ams_delta.c
+++ b/drivers/video/omap/lcd_ams_delta.c
@@ -99,7 +99,7 @@ static struct lcd_ops ams_delta_lcd_ops = {
99 99
100/* omapfb panel section */ 100/* omapfb panel section */
101 101
102static struct gpio _gpios[] __initconst_or_module = { 102static const struct gpio _gpios[] = {
103 { 103 {
104 .gpio = AMS_DELTA_GPIO_PIN_LCD_VBLEN, 104 .gpio = AMS_DELTA_GPIO_PIN_LCD_VBLEN,
105 .flags = GPIOF_OUT_INIT_LOW, 105 .flags = GPIOF_OUT_INIT_LOW,