aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-cam60.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-08-10 17:16:08 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-08-10 17:46:42 -0400
commit8436b410806d9a9a8ebfa1b924d8a96da893561a (patch)
tree698140891cdaed9240cbeca155bda8ecbd0b621a /arch/arm/mach-at91/board-cam60.c
parent4df772d76d2f9be2f3207ad154452e349b04a972 (diff)
ARM: 6324/1: cam60: move cam60_spi_devices to .init.data
cam60_spi_devices is passed to at91_add_device_spi which calls spi_register_board_info. The latter makes a copy of it, so living in .init.data is OK. This fixes the following warning in cam60_defconfig: WARNING: vmlinux.o(.data+0x2a00): Section mismatch in reference from the variable cam60_spi_devices to the (unknown reference) .init.data:(unknown) The variable cam60_spi_devices references the (unknown reference) __initdata (unknown) If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console, Acked-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-cam60.c')
-rw-r--r--arch/arm/mach-at91/board-cam60.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/board-cam60.c b/arch/arm/mach-at91/board-cam60.c
index 02138af631e7..05c70728f041 100644
--- a/arch/arm/mach-at91/board-cam60.c
+++ b/arch/arm/mach-at91/board-cam60.c
@@ -98,14 +98,14 @@ static struct mtd_partition __initdata cam60_spi_partitions[] = {
98 }, 98 },
99}; 99};
100 100
101static struct flash_platform_data __initdata cam60_spi_flash_platform_data = { 101static struct flash_platform_data cam60_spi_flash_platform_data __initdata = {
102 .name = "spi_flash", 102 .name = "spi_flash",
103 .parts = cam60_spi_partitions, 103 .parts = cam60_spi_partitions,
104 .nr_parts = ARRAY_SIZE(cam60_spi_partitions) 104 .nr_parts = ARRAY_SIZE(cam60_spi_partitions)
105}; 105};
106#endif 106#endif
107 107
108static struct spi_board_info cam60_spi_devices[] = { 108static struct spi_board_info cam60_spi_devices[] __initdata = {
109#if defined(CONFIG_MTD_DATAFLASH) 109#if defined(CONFIG_MTD_DATAFLASH)
110 { /* DataFlash chip */ 110 { /* DataFlash chip */
111 .modalias = "mtd_dataflash", 111 .modalias = "mtd_dataflash",