diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-10-20 13:23:15 +0200 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-11-19 03:53:46 +0000 |
commit | d1c925b22141b841060d8c1e3a9f9949a77cdc05 (patch) | |
tree | 310b60c09b62503cc9f2a760b47d9cd08ed15053 /arch/arm/mach-kirkwood/tsx1x-common.c | |
parent | 3ba09114a1cdca78e4578328ebc2fb6e910fe066 (diff) | |
download | linux-d1c925b22141b841060d8c1e3a9f9949a77cdc05.tar.bz2 |
ARM: Kirkwood: Fix sparse warnings.
Mostly missing statics, but also missing include files
and void parameters.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/tsx1x-common.c')
-rw-r--r-- | arch/arm/mach-kirkwood/tsx1x-common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-kirkwood/tsx1x-common.c b/arch/arm/mach-kirkwood/tsx1x-common.c index 8943ede29b44..cec87cef76ca 100644 --- a/arch/arm/mach-kirkwood/tsx1x-common.c +++ b/arch/arm/mach-kirkwood/tsx1x-common.c @@ -7,6 +7,7 @@ #include <linux/serial_reg.h> #include <mach/kirkwood.h> #include "common.h" +#include "tsx1x-common.h" /* * QNAP TS-x1x Boards flash @@ -29,7 +30,7 @@ * ***************************************************************************/ -struct mtd_partition qnap_tsx1x_partitions[] = { +static struct mtd_partition qnap_tsx1x_partitions[] = { { .name = "U-Boot", .size = 0x00080000, @@ -58,14 +59,14 @@ struct mtd_partition qnap_tsx1x_partitions[] = { }, }; -const struct flash_platform_data qnap_tsx1x_flash = { +static const struct flash_platform_data qnap_tsx1x_flash = { .type = "m25p128", .name = "spi_flash", .parts = qnap_tsx1x_partitions, .nr_parts = ARRAY_SIZE(qnap_tsx1x_partitions), }; -struct spi_board_info __initdata qnap_tsx1x_spi_slave_info[] = { +static struct spi_board_info __initdata qnap_tsx1x_spi_slave_info[] = { { .modalias = "m25p80", .platform_data = &qnap_tsx1x_flash, |