aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-kirkwood/tsx1x-common.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2012-10-20 13:23:15 +0200
committerJason Cooper <jason@lakedaemon.net>2012-11-19 03:53:46 +0000
commitd1c925b22141b841060d8c1e3a9f9949a77cdc05 (patch)
tree310b60c09b62503cc9f2a760b47d9cd08ed15053 /arch/arm/mach-kirkwood/tsx1x-common.c
parent3ba09114a1cdca78e4578328ebc2fb6e910fe066 (diff)
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.c7
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 8943ede29b4..cec87cef76c 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,