
On 1 October 2016 at 14:42, Simon Glass sjg@chromium.org wrote:
At present these functions do not touch addr, which can raising warnings about unused variables.
This fixes the following warnings:
sandbox_spl defconfig drivers/core/regmap.c: In function ‘regmap_read’: drivers/core/regmap.c:125:12: warning: unused variable ‘ptr’ [-Wunused-variable] uint32_t *ptr = map_physmem(map->base + offset, 4, MAP_NOCACHE); ^ drivers/core/regmap.c: In function ‘regmap_write’: drivers/core/regmap.c:134:12: warning: unused variable ‘ptr’ [-Wunused-variable] uint32_t *ptr = map_physmem(map->base + offset, 4, MAP_NOCACHE);
Signed-off-by: Simon Glass sjg@chromium.org Fixes: 3bfb8cb4 (dm: regmap: Implement simple regmap_read & regmap_write)
arch/sandbox/include/asm/io.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
Applied to u-boot-dm