mirror of
https://github.com/torvalds/linux.git
synced 2024-10-23 21:50:43 +00:00
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>
This commit is contained in:
parent
3ba09114a1
commit
d1c925b221
|
@ -26,7 +26,7 @@ static struct of_device_id kirkwood_dt_match_table[] __initdata = {
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct of_dev_auxdata kirkwood_auxdata_lookup[] __initdata = {
|
static struct of_dev_auxdata kirkwood_auxdata_lookup[] __initdata = {
|
||||||
OF_DEV_AUXDATA("marvell,orion-spi", 0xf1010600, "orion_spi.0", NULL),
|
OF_DEV_AUXDATA("marvell,orion-spi", 0xf1010600, "orion_spi.0", NULL),
|
||||||
OF_DEV_AUXDATA("marvell,mv64xxx-i2c", 0xf1011000, "mv64xxx_i2c.0",
|
OF_DEV_AUXDATA("marvell,mv64xxx-i2c", 0xf1011000, "mv64xxx_i2c.0",
|
||||||
NULL),
|
NULL),
|
||||||
|
|
|
@ -425,7 +425,7 @@ void __init kirkwood_sdio_init(struct mvsdio_platform_data *mvsdio_data)
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* SPI
|
* SPI
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
void __init kirkwood_spi_init()
|
void __init kirkwood_spi_init(void)
|
||||||
{
|
{
|
||||||
orion_spi_init(SPI_PHYS_BASE);
|
orion_spi_init(SPI_PHYS_BASE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include <mach/bridge-regs.h>
|
#include <mach/bridge-regs.h>
|
||||||
#include <plat/orion-gpio.h>
|
#include <plat/orion-gpio.h>
|
||||||
#include <plat/irq.h>
|
#include <plat/irq.h>
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
static int __initdata gpio0_irqs[4] = {
|
static int __initdata gpio0_irqs[4] = {
|
||||||
IRQ_KIRKWOOD_GPIO_LOW_0_7,
|
IRQ_KIRKWOOD_GPIO_LOW_0_7,
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
#include <plat/time.h>
|
#include <plat/time.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "lacie_v2-common.h"
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* 512KB SPI Flash on Boot Device (MACRONIX MX25L4005)
|
* 512KB SPI Flash on Boot Device (MACRONIX MX25L4005)
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "mpp.h"
|
#include "mpp.h"
|
||||||
|
|
||||||
struct mtd_partition hp_t5325_partitions[] = {
|
static struct mtd_partition hp_t5325_partitions[] = {
|
||||||
{
|
{
|
||||||
.name = "u-boot env",
|
.name = "u-boot env",
|
||||||
.size = SZ_64K,
|
.size = SZ_64K,
|
||||||
|
@ -59,14 +59,14 @@ struct mtd_partition hp_t5325_partitions[] = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct flash_platform_data hp_t5325_flash = {
|
static const struct flash_platform_data hp_t5325_flash = {
|
||||||
.type = "mx25l8005",
|
.type = "mx25l8005",
|
||||||
.name = "spi_flash",
|
.name = "spi_flash",
|
||||||
.parts = hp_t5325_partitions,
|
.parts = hp_t5325_partitions,
|
||||||
.nr_parts = ARRAY_SIZE(hp_t5325_partitions),
|
.nr_parts = ARRAY_SIZE(hp_t5325_partitions),
|
||||||
};
|
};
|
||||||
|
|
||||||
struct spi_board_info __initdata hp_t5325_spi_slave_info[] = {
|
static struct spi_board_info __initdata hp_t5325_spi_slave_info[] = {
|
||||||
{
|
{
|
||||||
.modalias = "m25p80",
|
.modalias = "m25p80",
|
||||||
.platform_data = &hp_t5325_flash,
|
.platform_data = &hp_t5325_flash,
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include <linux/serial_reg.h>
|
#include <linux/serial_reg.h>
|
||||||
#include <mach/kirkwood.h>
|
#include <mach/kirkwood.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "tsx1x-common.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* QNAP TS-x1x Boards flash
|
* 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",
|
.name = "U-Boot",
|
||||||
.size = 0x00080000,
|
.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",
|
.type = "m25p128",
|
||||||
.name = "spi_flash",
|
.name = "spi_flash",
|
||||||
.parts = qnap_tsx1x_partitions,
|
.parts = qnap_tsx1x_partitions,
|
||||||
.nr_parts = ARRAY_SIZE(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",
|
.modalias = "m25p80",
|
||||||
.platform_data = &qnap_tsx1x_flash,
|
.platform_data = &qnap_tsx1x_flash,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user