Skip to contentSkip to conversation

arm, da850: staticize funtions

PATCH In review Manish Badarkhe 2 participants 2 messages Apr 11, 2014 – Apr 18, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm, da850: staticize funtions

Make funtions static which are locally used in file and remove the declaration from header file.

---
:100644 100644 a3bbbb8... b91e948... M arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
:100644 100644 7f9c3f6... 45a325c... M arch/arm/include/asm/arch-davinci/da850_lowlevel.h

 arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c    |    6 +++---
 arch/arm/include/asm/arch-davinci/da850_lowlevel.h |    3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)
arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c +3 -3
index a3bbbb8..b91e948 100644
@@ -26,7 +26,7 @@ void davinci_enable_uart0(void)
 }
 
 #if defined(CONFIG_SYS_DA850_PLL_INIT)
-void da850_waitloop(unsigned long loopcnt)
+static void da850_waitloop(unsigned long loopcnt)
 {
 	unsigned long	i;
 
@@ -34,7 +34,7 @@ void da850_waitloop(unsigned long loopcnt)
 		asm("   NOP");
 }
 
-int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult)
+static int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult)
 {
 	if (reg == davinci_pllc0_regs)
 		/* Unlock PLL registers. */
@@ -160,7 +160,7 @@ int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult)
 #endif /* CONFIG_SYS_DA850_PLL_INIT */
 
 #if defined(CONFIG_SYS_DA850_DDR_INIT)
-int da850_ddr_setup(void)
+static int da850_ddr_setup(void)
 {
 	unsigned long	tmp;
 
arch/arm/include/asm/arch-davinci/da850_lowlevel.h +0 -3
index 7f9c3f6..45a325c 100644
@@ -26,11 +26,8 @@ extern const int lpsc_size;
 #define dv_maskbits(addr, val) \
 	writel((readl(addr) & val), addr)
 
-void da850_waitloop(unsigned long loopcnt);
-int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult);
 void da850_lpc_transition(unsigned char pscnum, unsigned char module,
 		unsigned char domain, unsigned char state);
-int da850_ddr_setup(void);
 void da850_psc_init(void);
 void da850_pinmux_ctl(unsigned long offset, unsigned long mask,
 	unsigned long value);
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 lines · Manish Badarkhe

Make funtions static which are locally used in file and remove the declaration from header file.

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/9ccd7d77/attachment.pgp>