summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/tsx1x-common.c
diff options
context:
space:
mode:
authorUwe Kleine-König2010-07-24 10:53:20 +0200
committerRussell King2010-07-26 11:33:08 +0200
commitf9578fc07832ee8db8b0fbde489e00ad35452ac9 (patch)
tree593ec98d7f36ac6ef3407d5d0f8e006faa76ab94 /arch/arm/mach-kirkwood/tsx1x-common.c
parentARM: 6263/1: ns9xxx: fix FTBFS for zImage (diff)
downloadkernel-qcow2-linux-f9578fc07832ee8db8b0fbde489e00ad35452ac9.tar.gz
kernel-qcow2-linux-f9578fc07832ee8db8b0fbde489e00ad35452ac9.tar.xz
kernel-qcow2-linux-f9578fc07832ee8db8b0fbde489e00ad35452ac9.zip
ARM: 6265/1: kirkwood: move qnap_tsx1x_register_flash() to .init.text
qnap_tsx1x_register_flash is only called by qnap_ts219_init and qnap_ts41x_init which both live in .init.text, too. So the move is OK. This fixes the following warning in kirkwood_defconfig: WARNING: vmlinux.o(.text+0x9334): Section mismatch in reference from the function qnap_tsx1x_register_flash() to the variable .init.data:qnap_tsx1x_spi_slave_info The function qnap_tsx1x_register_flash() references the variable __initdata qnap_tsx1x_spi_slave_info. This is often because qnap_tsx1x_register_flash lacks a __initdata annotation or the annotation of qnap_tsx1x_spi_slave_info is wrong. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-kirkwood/tsx1x-common.c')
-rw-r--r--arch/arm/mach-kirkwood/tsx1x-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-kirkwood/tsx1x-common.c b/arch/arm/mach-kirkwood/tsx1x-common.c
index 7221c20b2afa..f781164e623f 100644
--- a/arch/arm/mach-kirkwood/tsx1x-common.c
+++ b/arch/arm/mach-kirkwood/tsx1x-common.c
@@ -77,7 +77,7 @@ struct spi_board_info __initdata qnap_tsx1x_spi_slave_info[] = {
},
};
-void qnap_tsx1x_register_flash(void)
+void __init qnap_tsx1x_register_flash(void)
{
spi_register_board_info(qnap_tsx1x_spi_slave_info,
ARRAY_SIZE(qnap_tsx1x_spi_slave_info));