#define SRAM_GRANULARITY 32
struct sram_partition {
- void *base;
+ void __iomem *base;
struct gen_pool *pool;
struct bin_attribute battr;
part = container_of(attr, struct sram_partition, battr);
mutex_lock(&part->lock);
- memcpy(buf, part->base + pos, count);
+ memcpy_fromio(buf, part->base + pos, count);
mutex_unlock(&part->lock);
return count;
part = container_of(attr, struct sram_partition, battr);
mutex_lock(&part->lock);
- memcpy(part->base + pos, buf, count);
+ memcpy_toio(part->base + pos, buf, count);
mutex_unlock(&part->lock);
return count;