diff options
author | Manjunath Kondaiah G <manjugk@ti.com> | 2010-10-08 12:58:35 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-10-08 13:02:49 -0400 |
commit | 04aeae777945df0e3e37d968d211c821c7458cc5 (patch) | |
tree | 8bdc06f589442bb3927cdf0199cc91bea70bd1d6 /arch/arm/mach-omap2/board-n8x0.c | |
parent | 38815733972655ee3cbfc34e254c403c332693c3 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-omap2/board-n8x0.c')
-rw-r--r-- | arch/arm/mach-omap2/board-n8x0.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 8fd226989b25..abdcc3963a17 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -384,15 +384,6 @@ static void n8x0_mmc_callback(void *data, u8 card_mask) | |||
384 | omap_mmc_notify_cover_event(mmc_device, index, *openp); | 384 | omap_mmc_notify_cover_event(mmc_device, index, *openp); |
385 | } | 385 | } |
386 | 386 | ||
387 | void n8x0_mmc_slot1_cover_handler(void *arg, int closed_state) | ||
388 | { | ||
389 | if (mmc_device == NULL) | ||
390 | return; | ||
391 | |||
392 | slot1_cover_open = !closed_state; | ||
393 | omap_mmc_notify_cover_event(mmc_device, 0, closed_state); | ||
394 | } | ||
395 | |||
396 | static int n8x0_mmc_late_init(struct device *dev) | 387 | static int n8x0_mmc_late_init(struct device *dev) |
397 | { | 388 | { |
398 | int r, bit, *openp; | 389 | int r, bit, *openp; |
@@ -512,7 +503,7 @@ static struct omap_mmc_platform_data mmc1_data = { | |||
512 | 503 | ||
513 | static struct omap_mmc_platform_data *mmc_data[OMAP24XX_NR_MMC]; | 504 | static struct omap_mmc_platform_data *mmc_data[OMAP24XX_NR_MMC]; |
514 | 505 | ||
515 | void __init n8x0_mmc_init(void) | 506 | static void __init n8x0_mmc_init(void) |
516 | 507 | ||
517 | { | 508 | { |
518 | int err; | 509 | int err; |
@@ -561,11 +552,6 @@ void __init n8x0_mmc_init(void) | |||
561 | void __init n8x0_mmc_init(void) | 552 | void __init n8x0_mmc_init(void) |
562 | { | 553 | { |
563 | } | 554 | } |
564 | |||
565 | void n8x0_mmc_slot1_cover_handler(void *arg, int state) | ||
566 | { | ||
567 | } | ||
568 | |||
569 | #endif /* CONFIG_MMC_OMAP */ | 555 | #endif /* CONFIG_MMC_OMAP */ |
570 | 556 | ||
571 | #ifdef CONFIG_MENELAUS | 557 | #ifdef CONFIG_MENELAUS |