mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 17:43:43 +00:00
davinci: DA8XX/OMAP-L1XX: fix compiler warning
When kernel is built with CONFIG_DEBUG_SECTION_MISMATCH=y option, using da8xx_omapl_defconfig, some warnings are observed: WARNING: vmlinux.o(.text+0xc2a4): Section mismatch in reference from the function da850_evm_setup_nor_nand() to the variable .init.data:da850_nand_pins The function da850_evm_setup_nor_nand() references the variable __initdata da850_nand_pins. This is often because da850_evm_setup_nor_nand lacks a __initdata annotation or the annotation of da850_nand_pins is wrong. This patch fixes such warnings. Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This commit is contained in:
parent
039c5ee3c9
commit
1ef203c324
@ -433,8 +433,8 @@ static struct at24_platform_data da830_evm_i2c_eeprom_info = {
|
|||||||
.context = (void *)0x7f00,
|
.context = (void *)0x7f00,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int da830_evm_ui_expander_setup(struct i2c_client *client, int gpio,
|
static int __init da830_evm_ui_expander_setup(struct i2c_client *client,
|
||||||
unsigned ngpio, void *context)
|
int gpio, unsigned ngpio, void *context)
|
||||||
{
|
{
|
||||||
gpio_request(gpio + 6, "UI MUX_MODE");
|
gpio_request(gpio + 6, "UI MUX_MODE");
|
||||||
|
|
||||||
@ -455,7 +455,7 @@ static int da830_evm_ui_expander_teardown(struct i2c_client *client, int gpio,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pcf857x_platform_data da830_evm_ui_expander_info = {
|
static struct pcf857x_platform_data __initdata da830_evm_ui_expander_info = {
|
||||||
.gpio_base = DAVINCI_N_GPIO,
|
.gpio_base = DAVINCI_N_GPIO,
|
||||||
.setup = da830_evm_ui_expander_setup,
|
.setup = da830_evm_ui_expander_setup,
|
||||||
.teardown = da830_evm_ui_expander_teardown,
|
.teardown = da830_evm_ui_expander_teardown,
|
||||||
|
@ -176,7 +176,7 @@ static u32 ui_card_detected;
|
|||||||
#define HAS_MMC 0
|
#define HAS_MMC 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void da850_evm_setup_nor_nand(void)
|
static __init void da850_evm_setup_nor_nand(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user