aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/sram.c
diff options
context:
space:
mode:
authorManjunath Kondaiah G <manjugk@ti.com>2010-10-08 13:00:19 -0400
committerTony Lindgren <tony@atomide.com>2010-10-08 13:12:38 -0400
commitb0a330dc5eff6b27cce3b7b5dbea9379d969f73e (patch)
treef711cd79abe76c891bb72172c122af4c0ecf550b /arch/arm/plat-omap/sram.c
parent600ecd9874d56d310a597b1e0a3936f195c83022 (diff)
OMAP: plat-omap: Fix static function warnings
This patch fixes sparse warnings due non declarations of static functions. arch/arm/plat-omap/sram.c:130:13: warning: symbol 'omap_detect_sram' was not declared. Should it be static? arch/arm/plat-omap/sram.c:216:13: warning: symbol 'omap_map_sram' was not declared. Should it be static? arch/arm/plat-omap/sram.c:450:12: warning: symbol 'omap_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:348:12: warning: symbol 'omap242x_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:369:12: warning: symbol 'omap243x_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:425:12: warning: symbol 'omap34xx_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:441:12: warning: symbol 'omap44xx_sram_init' was not declared. Should it be static arch/arm/plat-omap/mcbsp.c:36:6: warning: symbol 'omap_mcbsp_write' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:50:5: warning: symbol 'omap_mcbsp_read' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:65:6: warning: symbol 'omap_mcbsp_st_write' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:70:5: warning: symbol 'omap_mcbsp_st_read' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:1648:15: warning: symbol 'omap_st_add' was not declared. Should it be static? arch/arm/plat-omap/fb.c:414:15: warning: symbol 'omapfb_reserve_sram' was not declared. Should it be static? arch/arm/plat-omap/cpu-omap.c:43:5: warning: symbol 'omap_verify_speed' was not declared. Should it be static? arch/arm/plat-omap/cpu-omap.c:61:14: warning: symbol 'omap_getspeed' 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/plat-omap/sram.c')
-rw-r--r--arch/arm/plat-omap/sram.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 98c86ff17205..dba5704b77db 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -19,6 +19,7 @@
19#include <linux/kernel.h> 19#include <linux/kernel.h>
20#include <linux/init.h> 20#include <linux/init.h>
21#include <linux/io.h> 21#include <linux/io.h>
22#include <linux/omapfb.h>
22 23
23#include <asm/tlb.h> 24#include <asm/tlb.h>
24#include <asm/cacheflush.h> 25#include <asm/cacheflush.h>
@@ -31,6 +32,8 @@
31#include <plat/vram.h> 32#include <plat/vram.h>
32 33
33#include <plat/control.h> 34#include <plat/control.h>
35#include "sram.h"
36#include "fb.h"
34 37
35#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) 38#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
36# include "../mach-omap2/prm.h" 39# include "../mach-omap2/prm.h"
@@ -79,12 +82,6 @@ static unsigned long omap_sram_base;
79static unsigned long omap_sram_size; 82static unsigned long omap_sram_size;
80static unsigned long omap_sram_ceil; 83static unsigned long omap_sram_ceil;
81 84
82extern unsigned long omapfb_reserve_sram(unsigned long sram_pstart,
83 unsigned long sram_vstart,
84 unsigned long sram_size,
85 unsigned long pstart_avail,
86 unsigned long size_avail);
87
88/* 85/*
89 * Depending on the target RAMFS firewall setup, the public usable amount of 86 * Depending on the target RAMFS firewall setup, the public usable amount of
90 * SRAM varies. The default accessible size for all device types is 2k. A GP 87 * SRAM varies. The default accessible size for all device types is 2k. A GP
@@ -118,7 +115,7 @@ static int is_sram_locked(void)
118 * to secure SRAM will hang the system. Also the SRAM is not 115 * to secure SRAM will hang the system. Also the SRAM is not
119 * yet mapped at this point. 116 * yet mapped at this point.
120 */ 117 */
121void __init omap_detect_sram(void) 118static void __init omap_detect_sram(void)
122{ 119{
123 unsigned long reserved; 120 unsigned long reserved;
124 121
@@ -204,7 +201,7 @@ static struct map_desc omap_sram_io_desc[] __initdata = {
204/* 201/*
205 * Note that we cannot use ioremap for SRAM, as clock init needs SRAM early. 202 * Note that we cannot use ioremap for SRAM, as clock init needs SRAM early.
206 */ 203 */
207void __init omap_map_sram(void) 204static void __init omap_map_sram(void)
208{ 205{
209 unsigned long base; 206 unsigned long base;
210 207
@@ -336,7 +333,7 @@ u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass)
336#endif 333#endif
337 334
338#ifdef CONFIG_ARCH_OMAP2420 335#ifdef CONFIG_ARCH_OMAP2420
339int __init omap242x_sram_init(void) 336static int __init omap242x_sram_init(void)
340{ 337{
341 _omap2_sram_ddr_init = omap_sram_push(omap242x_sram_ddr_init, 338 _omap2_sram_ddr_init = omap_sram_push(omap242x_sram_ddr_init,
342 omap242x_sram_ddr_init_sz); 339 omap242x_sram_ddr_init_sz);
@@ -357,7 +354,7 @@ static inline int omap242x_sram_init(void)
357#endif 354#endif
358 355
359#ifdef CONFIG_ARCH_OMAP2430 356#ifdef CONFIG_ARCH_OMAP2430
360int __init omap243x_sram_init(void) 357static int __init omap243x_sram_init(void)
361{ 358{
362 _omap2_sram_ddr_init = omap_sram_push(omap243x_sram_ddr_init, 359 _omap2_sram_ddr_init = omap_sram_push(omap243x_sram_ddr_init,
363 omap243x_sram_ddr_init_sz); 360 omap243x_sram_ddr_init_sz);
@@ -413,7 +410,7 @@ void omap3_sram_restore_context(void)
413} 410}
414#endif /* CONFIG_PM */ 411#endif /* CONFIG_PM */
415 412
416int __init omap34xx_sram_init(void) 413static int __init omap34xx_sram_init(void)
417{ 414{
418 _omap3_sram_configure_core_dpll = 415 _omap3_sram_configure_core_dpll =
419 omap_sram_push(omap3_sram_configure_core_dpll, 416 omap_sram_push(omap3_sram_configure_core_dpll,
@@ -429,7 +426,7 @@ static inline int omap34xx_sram_init(void)
429#endif 426#endif
430 427
431#ifdef CONFIG_ARCH_OMAP4 428#ifdef CONFIG_ARCH_OMAP4
432int __init omap44xx_sram_init(void) 429static int __init omap44xx_sram_init(void)
433{ 430{
434 printk(KERN_ERR "FIXME: %s not implemented\n", __func__); 431 printk(KERN_ERR "FIXME: %s not implemented\n", __func__);
435 432