int cnt;
int retcode;
void *src = cp;
- void *dst = dest;
+ void *dst = (void *)dest;
void *dst2 = dst;
int flag = 0;
uint offset = 0;
info->vendor = modes[i];
info->start[0] =
(ulong)map_physmem(base,
- info->portwith,
+ info->portwidth,
MAP_NOCACHE);
if (info->portwidth == FLASH_CFI_8BIT
&& info->interface == FLASH_CFI_X8X16) {
if (jedec_flash_match(info, info->start[0]))
break;
else
- unmap_physmem(info->start[0],
+ unmap_physmem((void *)info->start[0],
MAP_NOCACHE);
}
}