OMAP2plus: Fix static function warnings
This patch fixes sparse warnings due non declarations of static functions. arch/arm/mach-omap2/timer-gp.c:115:12: warning: symbol 'omap2_gp_clockevent_set_gptimer' was not declared. Should it be static? arch/arm/mach-omap2/powerdomain.c:993:5: warning: symbol 'pwrdm_set_lowpwrstchange' was not declared. Should it be static? arch/arm/mach-omap2/board-flash.c:141:8: warning: symbol 'board_nand_init' was not declared. Should it be static? arch/arm/mach-omap2/board-n8x0.c:416:6: warning: symbol 'n8x0_mmc_slot1_cover_handler' was not declared. Should it be static? arch/arm/mach-omap2/board-n8x0.c:544:13: warning: symbol 'n8x0_mmc_init' was not declared. Should it be static? arch/arm/mach-omap2/board-rx51-peripherals.c:902:13: warning: symbol 'rx51_peripherals_init' was not declared. Should it be static? arch/arm/mach-omap2/board-rx51-video.c:107:13: warning: symbol 'rx51_video_mem_init' was not declared. Should it be static? arch/arm/mach-omap2/board-zoom-debugboard.c:155:12: warning: symbol 'zoom_debugboard_init' was not declared. Should it be static? arch/arm/mach-omap2/board-zoom-peripherals.c:280:13: warning: symbol 'zoom_peripherals_init' was not declared. Should it be static? arch/arm/mach-omap2/board-igep0020.c:110:13: warning: symbol 'igep2_flash_init' was not declared. Should it be static? arch/arm/mach-omap2/board-am3517evm.c:109:6: warning: symbol 'am3517_evm_ethernet_init' was not declared. Should it be static? drivers/mtd/onenand/omap2.c:577:5: warning: symbol 'omap2_onenand_rephase' was not declared. Should it be static? Signed-off-by: Manjunath Kondaiah G <manjugk@ti.com> Cc: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Родитель
3881573397
Коммит
04aeae7779
|
@ -42,8 +42,7 @@
|
|||
#include <plat/control.h>
|
||||
#include <plat/gpmc-smc91x.h>
|
||||
|
||||
#include <mach/board-flash.h>
|
||||
|
||||
#include "board-flash.h"
|
||||
#include "mux.h"
|
||||
#include "sdram-qimonda-hyb18m512160af-6.h"
|
||||
#include "hsmmc.h"
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include <plat/usb.h>
|
||||
|
||||
#include <mach/board-zoom.h>
|
||||
#include <mach/board-flash.h>
|
||||
|
||||
#include "board-flash.h"
|
||||
#include "mux.h"
|
||||
#include "sdram-hynix-h8mbx00u0mer-0em.h"
|
||||
|
||||
|
|
|
@ -33,10 +33,11 @@
|
|||
#include <plat/board.h>
|
||||
#include <plat/common.h>
|
||||
#include <plat/control.h>
|
||||
#include <plat/timer-gp.h>
|
||||
#include <plat/usb.h>
|
||||
#include <plat/mmc.h>
|
||||
|
||||
#include "hsmmc.h"
|
||||
#include "timer-gp.h"
|
||||
|
||||
#define ETH_KS8851_IRQ 34
|
||||
#define ETH_KS8851_POWER_ON 48
|
||||
|
|
|
@ -106,7 +106,7 @@ static void am3517_disable_ethernet_int(void)
|
|||
regval = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR);
|
||||
}
|
||||
|
||||
void am3517_evm_ethernet_init(struct emac_platform_data *pdata)
|
||||
static void am3517_evm_ethernet_init(struct emac_platform_data *pdata)
|
||||
{
|
||||
unsigned int regval;
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#include <plat/gpmc.h>
|
||||
#include <plat/nand.h>
|
||||
#include <plat/usb.h>
|
||||
#include <plat/timer-gp.h>
|
||||
#include <plat/display.h>
|
||||
|
||||
#include <plat/mcspi.h>
|
||||
|
@ -59,6 +58,7 @@
|
|||
|
||||
#include "mux.h"
|
||||
#include "hsmmc.h"
|
||||
#include "timer-gp.h"
|
||||
|
||||
#define NAND_BLOCK_SIZE SZ_128K
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
#include <plat/nand.h>
|
||||
#include <plat/onenand.h>
|
||||
#include <plat/tc.h>
|
||||
#include <mach/board-flash.h>
|
||||
|
||||
#include "board-flash.h"
|
||||
|
||||
#define REG_FPGA_REV 0x10
|
||||
#define REG_FPGA_DIP_SWITCH_INPUT2 0x60
|
||||
|
|
|
@ -26,3 +26,5 @@ struct flash_partitions {
|
|||
|
||||
extern void board_flash_init(struct flash_partitions [],
|
||||
char chip_sel[][GPMC_CS_NUM]);
|
||||
extern void board_nand_init(struct mtd_partition *nand_parts,
|
||||
u8 nr_parts, u8 cs);
|
|
@ -108,7 +108,7 @@ static struct platform_device igep2_onenand_device = {
|
|||
},
|
||||
};
|
||||
|
||||
void __init igep2_flash_init(void)
|
||||
static void __init igep2_flash_init(void)
|
||||
{
|
||||
u8 cs = 0;
|
||||
u8 onenandcs = GPMC_CS_NUM + 1;
|
||||
|
@ -142,7 +142,7 @@ void __init igep2_flash_init(void)
|
|||
}
|
||||
|
||||
#else
|
||||
void __init igep2_flash_init(void) {}
|
||||
static void __init igep2_flash_init(void) {}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#include <plat/control.h>
|
||||
#include <plat/usb.h>
|
||||
|
||||
#include "board-flash.h"
|
||||
#include "mux.h"
|
||||
#include "hsmmc.h"
|
||||
|
||||
|
|
|
@ -384,15 +384,6 @@ static void n8x0_mmc_callback(void *data, u8 card_mask)
|
|||
omap_mmc_notify_cover_event(mmc_device, index, *openp);
|
||||
}
|
||||
|
||||
void n8x0_mmc_slot1_cover_handler(void *arg, int closed_state)
|
||||
{
|
||||
if (mmc_device == NULL)
|
||||
return;
|
||||
|
||||
slot1_cover_open = !closed_state;
|
||||
omap_mmc_notify_cover_event(mmc_device, 0, closed_state);
|
||||
}
|
||||
|
||||
static int n8x0_mmc_late_init(struct device *dev)
|
||||
{
|
||||
int r, bit, *openp;
|
||||
|
@ -512,7 +503,7 @@ static struct omap_mmc_platform_data mmc1_data = {
|
|||
|
||||
static struct omap_mmc_platform_data *mmc_data[OMAP24XX_NR_MMC];
|
||||
|
||||
void __init n8x0_mmc_init(void)
|
||||
static void __init n8x0_mmc_init(void)
|
||||
|
||||
{
|
||||
int err;
|
||||
|
@ -561,11 +552,6 @@ void __init n8x0_mmc_init(void)
|
|||
void __init n8x0_mmc_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
void n8x0_mmc_slot1_cover_handler(void *arg, int state)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_MMC_OMAP */
|
||||
|
||||
#ifdef CONFIG_MENELAUS
|
||||
|
|
|
@ -44,10 +44,10 @@
|
|||
#include <plat/gpmc.h>
|
||||
#include <plat/nand.h>
|
||||
#include <plat/usb.h>
|
||||
#include <plat/timer-gp.h>
|
||||
|
||||
#include "mux.h"
|
||||
#include "hsmmc.h"
|
||||
#include "timer-gp.h"
|
||||
|
||||
#define NAND_BLOCK_SIZE SZ_128K
|
||||
|
||||
|
|
|
@ -35,13 +35,13 @@
|
|||
|
||||
#include "mux.h"
|
||||
#include "hsmmc.h"
|
||||
#include "timer-gp.h"
|
||||
|
||||
#include <plat/mux.h>
|
||||
#include <plat/board.h>
|
||||
#include <plat/common.h>
|
||||
#include <plat/gpmc-smsc911x.h>
|
||||
#include <plat/gpmc.h>
|
||||
#include <plat/timer-gp.h>
|
||||
#include <plat/sdrc.h>
|
||||
#include <plat/control.h>
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include <plat/gpmc.h>
|
||||
#include <plat/nand.h>
|
||||
#include <plat/usb.h>
|
||||
#include <plat/timer-gp.h>
|
||||
#include <plat/display.h>
|
||||
|
||||
#include <plat/mcspi.h>
|
||||
|
@ -53,6 +52,7 @@
|
|||
#include "sdram-micron-mt46h32m32lf-6.h"
|
||||
#include "mux.h"
|
||||
#include "hsmmc.h"
|
||||
#include "timer-gp.h"
|
||||
|
||||
#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
|
||||
#define OMAP3STALKER_ETHR_START 0x2c000000
|
||||
|
|
|
@ -48,10 +48,10 @@
|
|||
#include <plat/gpmc.h>
|
||||
#include <plat/nand.h>
|
||||
#include <plat/usb.h>
|
||||
#include <plat/timer-gp.h>
|
||||
|
||||
#include "mux.h"
|
||||
#include "hsmmc.h"
|
||||
#include "timer-gp.h"
|
||||
|
||||
#include <asm/setup.h>
|
||||
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
#include <plat/board.h>
|
||||
#include <plat/common.h>
|
||||
#include <plat/control.h>
|
||||
#include <plat/timer-gp.h>
|
||||
#include <plat/usb.h>
|
||||
#include <plat/mmc.h>
|
||||
#include "hsmmc.h"
|
||||
#include "timer-gp.h"
|
||||
|
||||
|
||||
static struct gpio_led gpio_leds[] = {
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#include <plat/onenand.h>
|
||||
#include <plat/gpmc-smc91x.h>
|
||||
|
||||
#include <mach/board-rx51.h>
|
||||
|
||||
#include <sound/tlv320aic3x.h>
|
||||
#include <sound/tpa6130a2-plat.h>
|
||||
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
#include <plat/vram.h>
|
||||
#include <plat/mcspi.h>
|
||||
|
||||
#include <mach/board-rx51.h>
|
||||
|
||||
#include "mux.h"
|
||||
|
||||
#define RX51_LCD_RESET_GPIO 90
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#include <plat/gpmc.h>
|
||||
|
||||
#include <mach/board-zoom.h>
|
||||
|
||||
#define ZOOM_SMSC911X_CS 7
|
||||
#define ZOOM_SMSC911X_GPIO 158
|
||||
#define ZOOM_QUADUART_CS 3
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#include <plat/common.h>
|
||||
#include <plat/usb.h>
|
||||
|
||||
#include <mach/board-zoom.h>
|
||||
|
||||
#include "mux.h"
|
||||
#include "hsmmc.h"
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <mach/board-zoom.h>
|
||||
|
||||
#include "board-flash.h"
|
||||
#include "mux.h"
|
||||
#include "sdram-micron-mt46h32m32lf-6.h"
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <plat/board.h>
|
||||
#include <plat/usb.h>
|
||||
|
||||
#include "board-flash.h"
|
||||
#include "mux.h"
|
||||
#include "sdram-hynix-h8mbx00u0mer-0em.h"
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Defines for rx51 boards
|
||||
*/
|
||||
|
||||
#ifndef _OMAP_BOARD_RX51_H
|
||||
#define _OMAP_BOARD_RX51_H
|
||||
|
||||
extern void __init rx51_peripherals_init(void);
|
||||
extern void __init rx51_video_mem_init(void);
|
||||
|
||||
#endif
|
|
@ -1,11 +1,7 @@
|
|||
/*
|
||||
* Defines for zoom boards
|
||||
*/
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/partitions.h>
|
||||
|
||||
#define ZOOM_NAND_CS 0
|
||||
|
||||
extern void __init board_nand_init(struct mtd_partition *, u8 nr_parts, u8 cs);
|
||||
extern int __init zoom_debugboard_init(void);
|
||||
extern void __init zoom_peripherals_init(void);
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
#include <plat/dmtimer.h>
|
||||
#include <asm/localtimer.h>
|
||||
|
||||
#include "timer-gp.h"
|
||||
|
||||
/* MAX_GPTIMER_ID: number of GPTIMERs on the chip */
|
||||
#define MAX_GPTIMER_ID 12
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_TIMER_GP_H
|
||||
#define __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_TIMER_GP_H
|
||||
|
||||
int __init omap2_gp_clockevent_set_gptimer(u8 id);
|
||||
extern int __init omap2_gp_clockevent_set_gptimer(u8 id);
|
||||
|
||||
#endif
|
||||
|
|
@ -162,5 +162,6 @@ int pwrdm_state_switch(struct powerdomain *pwrdm);
|
|||
int pwrdm_clkdm_state_switch(struct clockdomain *clkdm);
|
||||
int pwrdm_pre_transition(void);
|
||||
int pwrdm_post_transition(void);
|
||||
int pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm);
|
||||
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче