Fix build errors after making flash_get_info() non-static
authorWolfgang Denk <wd@denx.de>
Wed, 18 Feb 2009 20:35:38 +0000 (21:35 +0100)
committerWolfgang Denk <wd@denx.de>
Wed, 18 Feb 2009 21:40:08 +0000 (22:40 +0100)
Fix for these build problems:
error: static declaration of 'flash_get_info' follows non-static declaration

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/emk/common/flash.c
board/evb64260/flash.c

index 330978b9511acd225c8573be4810e45043da0fd7..8579cfaad8d33cfec09ee965d5f276fbab6b7e79 100644 (file)
@@ -82,7 +82,7 @@ flash_info_t  flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 static ulong flash_get_size(FPWV *addr, flash_info_t *info);
 static void flash_reset(flash_info_t *info);
 static int write_word_amd(flash_info_t *info, FPWV *dest, FPW data);
-static flash_info_t *flash_get_info(ulong base);
+flash_info_t *flash_get_info(ulong base);
 
 /*-----------------------------------------------------------------------
  * flash_init()
@@ -142,7 +142,7 @@ static void flash_reset(flash_info_t *info)
 /*-----------------------------------------------------------------------
  */
 
-static flash_info_t *flash_get_info(ulong base)
+flash_info_t *flash_get_info(ulong base)
 {
        int i;
        flash_info_t * info;
index 115e8cd4dae03827b6343ed82c3c56d42f28d22d..825bbaf700edb580256e65d4edae82697c50030d 100644 (file)
@@ -54,7 +54,6 @@ flash_info_t  flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 static ulong flash_get_size (int portwidth, vu_long *addr, flash_info_t *info);
 static int write_word (flash_info_t *info, ulong dest, ulong data);
 static void flash_get_offsets (ulong base, flash_info_t *info);
-static flash_info_t *flash_get_info(ulong base);
 
 /*-----------------------------------------------------------------------
  */
@@ -178,7 +177,7 @@ flash_get_offsets (ulong base, flash_info_t *info)
 /*-----------------------------------------------------------------------
  */
 
-static flash_info_t *flash_get_info(ulong base)
+flash_info_t *flash_get_info(ulong base)
 {
        int i;
        flash_info_t * info;