sandbox: Use the address in readl/writel() functions
authorSimon Glass <sjg@chromium.org>
Sat, 1 Oct 2016 20:42:33 +0000 (14:42 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Oct 2016 16:17:08 +0000 (10:17 -0600)
commit80793db9091b40cf0078568bb5359be0e7f43e89
treee3d10c582e74f71e42e76f65763fc9f8df975b06
parentbf635ed091dee333f4458eec617a4124b51322fc
sandbox: Use the address in readl/writel() functions

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