Fix incorrect use of getenv() before relocation
[oweals/u-boot.git] / board / amcc / taihu / update.c
index 52bad56bfd68a3096d7091f36e937bba1ed4964a..b87eac4a1b27976154f349500b986498d77b01b9 100644 (file)
@@ -98,7 +98,7 @@ static uchar buf_66[] =
        0x00
 };
 
-static int update_boot_eeprom(cmd_tbl_t* cmdtp, int flag, int argc, char *argv[])
+static int update_boot_eeprom(cmd_tbl_t* cmdtp, int flag, int argc, char * const argv[])
 {
        ulong len = 0x20;
        uchar chip = CONFIG_SYS_I2C_EEPROM_ADDR;
@@ -127,6 +127,6 @@ static int update_boot_eeprom(cmd_tbl_t* cmdtp, int flag, int argc, char *argv[]
 
 U_BOOT_CMD (
        update_boot_eeprom, 1, 1, update_boot_eeprom,
-       "update_boot_eeprom  - update boot eeprom content\n",
-       NULL
-       );
+       "update boot eeprom content",
+       ""
+);