]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
powerpc/83xx/km: make local functions and structs static
authorHolger Brunck <holger.brunck@keymile.com>
Mon, 6 May 2013 13:02:40 +0000 (15:02 +0200)
committerKim Phillips <kim.phillips@freescale.com>
Tue, 21 May 2013 23:04:33 +0000 (18:04 -0500)
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
board/keymile/common/common.c
board/keymile/common/ivm.c
board/keymile/km83xx/km83xx.c

index ef93ed3f66e5414bd97124f3649a067c188ea407..544784a7d90a75fd7186e14985b0c1db86411913 100644 (file)
@@ -242,7 +242,7 @@ U_BOOT_CMD(km_setboardid, 1, 0, do_setboardid, "setboardid", "read out bid and "
  *                             application and in the init scripts (?)
  *     return 0 in case of match, 1 if not match or error
  */
-int do_checkboardidhwk(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_checkboardidhwk(cmd_tbl_t *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        unsigned long ivmbid = 0, ivmhwkey = 0;
@@ -383,7 +383,7 @@ U_BOOT_CMD(km_checkbidhwk, 2, 0, do_checkboardidhwk,
  *  if the testpin of the board is asserted, return 1
  *  *  else return 0
  */
-int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        int testpin = 0;
index 22d525602a96bc2e1e09da2612cfbb426d235f67..0deed1d6b8a539cf9d2110f3921ade5ea15a12fa 100644 (file)
@@ -26,7 +26,7 @@
 #include <i2c.h>
 #include "common.h"
 
-int ivm_calc_crc(unsigned char *buf, int len)
+static int ivm_calc_crc(unsigned char *buf, int len)
 {
        const unsigned short crc_tab[16] = {
                0x0000, 0xCC01, 0xD801, 0x1400,
@@ -252,7 +252,7 @@ static int ivm_analyze_block2(unsigned char *buf, int len)
        return 0;
 }
 
-int ivm_analyze_eeprom(unsigned char *buf, int len)
+static int ivm_analyze_eeprom(unsigned char *buf, int len)
 {
        unsigned short  val;
        unsigned char   valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN];
index 71b9e966158cb7ee3f0f4d685edb2a8ef69463c4..d9f718eb3033a8e4d8361fe3104883839c659f85 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "../common/common.h"
 
-const qe_iop_conf_t qe_iop_conf_tab[] = {
+static const qe_iop_conf_t qe_iop_conf_tab[] = {
        /* port pin dir open_drain assign */
 #if defined(CONFIG_MPC8360)
        /* MDIO */
@@ -300,7 +300,7 @@ int last_stage_init(void)
        return 0;
 }
 
-int fixed_sdram(void)
+static int fixed_sdram(void)
 {
        immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;