X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=board%2Fsbc2410x%2Fflash.c;h=fa3996ddcf55bbd7a40d1e75626829f8b2c042d4;hb=0e8d158664a913392cb01fb11a948d83f72e105e;hp=f2718f256ff6ca91165231e8318373f72e29f6b0;hpb=42868896df7eac02f67e2c52c6457c917b1542e9;p=karo-tx-uboot.git diff --git a/board/sbc2410x/flash.c b/board/sbc2410x/flash.c index f2718f256f..fa3996ddcf 100644 --- a/board/sbc2410x/flash.c +++ b/board/sbc2410x/flash.c @@ -114,8 +114,8 @@ ulong flash_init (void) &flash_info[0]); flash_protect (FLAG_PROTECT_SET, - CFG_ENV_ADDR, - CFG_ENV_ADDR + CFG_ENV_SIZE - 1, &flash_info[0]); + CONFIG_ENV_ADDR, + CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]); return size; } @@ -288,7 +288,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last) * Copy memory to flash */ -volatile static int write_hword (flash_info_t * info, ulong dest, ushort data) +static int write_hword (flash_info_t * info, ulong dest, ushort data) { vu_short *addr = (vu_short *) dest; ushort result;