Variable bi_env is unsued. Remove it.

Signed-off-by: Dirk Behme <dirk.be...@googlemail.com> 

---

Note: This patch is RFC because it is compile tested on ARM, only.
      Anybody able to test it for AVR, i386 and MIPS? 

Index: u-boot.git/common/cmd_bdinfo.c
===================================================================
--- u-boot.git.orig/common/cmd_bdinfo.c 2010-07-23 20:58:37.890831130 +0200
+++ u-boot.git/common/cmd_bdinfo.c      2010-07-23 21:00:02.626830825 +0200
@@ -325,7 +325,6 @@
        bd_t *bd = gd->bd;
 
        print_num ("arch_number",       bd->bi_arch_number);
-       print_num ("env_t",             (ulong)bd->bi_env);
        print_num ("boot_params",       (ulong)bd->bi_boot_params);
 
        for (i=0; i<CONFIG_NR_DRAM_BANKS; ++i) {
Index: u-boot.git/include/asm-arm/u-boot.h
===================================================================
--- u-boot.git.orig/include/asm-arm/u-boot.h    2010-07-23 20:58:37.890831130 
+0200
+++ u-boot.git/include/asm-arm/u-boot.h 2010-07-23 21:00:02.626830825 +0200
@@ -39,7 +39,6 @@
 typedef struct bd_info {
     int                        bi_baudrate;    /* serial console baudrate */
     unsigned long      bi_ip_addr;     /* IP Address */
-    struct environment_s              *bi_env;
     ulong              bi_arch_number; /* unique id for this board */
     ulong              bi_boot_params; /* where this board expects params */
     struct                             /* RAM configuration */
@@ -49,7 +48,4 @@
     }                  bi_dram[CONFIG_NR_DRAM_BANKS];
 } bd_t;
 
-#define bi_env_data bi_env->data
-#define bi_env_crc  bi_env->crc
-
 #endif /* _U_BOOT_H_ */
Index: u-boot.git/include/asm-avr32/u-boot.h
===================================================================
--- u-boot.git.orig/include/asm-avr32/u-boot.h  2010-07-23 20:58:37.890831130 
+0200
+++ u-boot.git/include/asm-avr32/u-boot.h       2010-07-23 21:00:02.626830825 
+0200
@@ -26,7 +26,6 @@
        unsigned long           bi_baudrate;
        unsigned long           bi_ip_addr;
        unsigned char           bi_phy_id[4];
-       struct environment_s    *bi_env;
        unsigned long           bi_board_number;
        void                    *bi_boot_params;
        struct {
Index: u-boot.git/include/asm-i386/u-boot.h
===================================================================
--- u-boot.git.orig/include/asm-i386/u-boot.h   2010-07-23 20:58:37.890831130 
+0200
+++ u-boot.git/include/asm-i386/u-boot.h        2010-07-23 21:00:02.626830825 
+0200
@@ -51,7 +51,6 @@
        unsigned long   bi_busfreq;     /* Bus Freq, in MHz */
        unsigned int    bi_baudrate;    /* Console Baudrate */
        unsigned long   bi_boot_params; /* where this board expects params */
-       struct environment_s           *bi_env;
        struct                          /* RAM configuration */
        {
                ulong start;
@@ -59,7 +58,4 @@
        }bi_dram[CONFIG_NR_DRAM_BANKS];
 } bd_t;
 
-#define bi_env_data bi_env->data
-#define bi_env_crc  bi_env->crc
-
 #endif /* _U_BOOT_H_ */
Index: u-boot.git/include/asm-mips/u-boot.h
===================================================================
--- u-boot.git.orig/include/asm-mips/u-boot.h   2010-07-23 20:58:37.890831130 
+0200
+++ u-boot.git/include/asm-mips/u-boot.h        2010-07-23 21:00:02.626830825 
+0200
@@ -42,7 +42,5 @@
        unsigned long   bi_flashsize;   /* size  of FLASH memory */
        unsigned long   bi_flashoffset; /* reserved area for startup monitor */
 } bd_t;
-#define bi_env_data bi_env->data
-#define bi_env_crc  bi_env->crc
 
 #endif /* _U_BOOT_H_ */
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to