diff options
author | Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> | 2012-02-10 11:48:43 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-03-01 18:20:26 -0500 |
commit | da564a05b3aefe403062411b67d64b7e992718f7 (patch) | |
tree | 3f075ad74fbd4e4f843072cb887ef1a2d573ac01 /drivers | |
parent | dc0caefdf48713fce373c8663e5a0d292a424746 (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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/serio/ams_delta_serio.c | 2 | ||||
-rw-r--r-- | drivers/mtd/nand/ams-delta.c | 2 | ||||
-rw-r--r-- | drivers/video/omap/lcd_ams_delta.c | 2 |
3 files changed, 3 insertions, 3 deletions
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 | ||
106 | static struct gpio ams_delta_gpios[] __initconst_or_module = { | 106 | static 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 | ||
148 | static struct gpio _mandatory_gpio[] __initconst_or_module = { | 148 | static 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 | ||
102 | static struct gpio _gpios[] __initconst_or_module = { | 102 | static 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, |