diff options
author | Sudhakar Rajashekhara <sudhakar.raj@ti.com> | 2009-11-03 11:51:19 +0530 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-25 10:21:36 -0800 |
commit | 1ef203c3242c17da6559c4be1aa91c689d3efbb0 (patch) | |
tree | bbb6607fd51a46235e87ddac1954bbc14d4d941b /arch/arm/mach-davinci/board-da850-evm.c | |
parent | 039c5ee3c901aded685fbbfbbea636f2f3ffc0e2 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-davinci/board-da850-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 19eb0479d26..529e47215e0 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -176,7 +176,7 @@ static u32 ui_card_detected; #define HAS_MMC 0 #endif -static void da850_evm_setup_nor_nand(void) +static __init void da850_evm_setup_nor_nand(void) { int ret = 0; |