Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360381
b: refs/heads/master
c: 24dea0c
h: refs/heads/master
i:
  360379: 70518d4
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Feb 22, 2013
1 parent 3bb70c0 commit 88bbdbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be0638d9e4795254e28e39eff61e38f47d240fd2
refs/heads/master: 24dea0c9feccf699749f860fa2f4ccd84d30390d
8 changes: 6 additions & 2 deletions trunk/include/linux/mtd/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static inline int map_word_bitsset(struct map_info *map, map_word val1, map_word

static inline map_word map_word_load(struct map_info *map, const void *ptr)
{
map_word r = {{0} };
map_word r;

if (map_bankwidth_is_1(map))
r.x[0] = *(unsigned char *)ptr;
Expand All @@ -343,6 +343,8 @@ static inline map_word map_word_load(struct map_info *map, const void *ptr)
#endif
else if (map_bankwidth_is_large(map))
memcpy(r.x, ptr, map->bankwidth);
else
BUG();

return r;
}
Expand Down Expand Up @@ -392,7 +394,7 @@ static inline map_word map_word_ff(struct map_info *map)

static inline map_word inline_map_read(struct map_info *map, unsigned long ofs)
{
map_word uninitialized_var(r);
map_word r;

if (map_bankwidth_is_1(map))
r.x[0] = __raw_readb(map->virt + ofs);
Expand Down Expand Up @@ -426,6 +428,8 @@ static inline void inline_map_write(struct map_info *map, const map_word datum,
#endif
else if (map_bankwidth_is_large(map))
memcpy_toio(map->virt+ofs, datum.x, map->bankwidth);
else
BUG();
mb();
}

Expand Down

0 comments on commit 88bbdbc

Please sign in to comment.