Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4562
b: refs/heads/master
c: b043569
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed May 25, 2005
1 parent b9f0d8f commit 4593a5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 3a3ab48c68de656736f091c6ed768fa8c110a7ab
refs/heads/master: b0435695cb3b3e0542c9a3f921f40b216ec37580
7 changes: 4 additions & 3 deletions trunk/include/linux/mtd/map.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* Overhauled routines for dealing with different mmap regions of flash */
/* $Id: map.h,v 1.49 2005/05/24 18:45:15 gleixner Exp $ */
/* $Id: map.h,v 1.51 2005/05/25 10:15:29 gleixner Exp $ */

#ifndef __LINUX_MTD_MAP_H__
#define __LINUX_MTD_MAP_H__
Expand Down Expand Up @@ -351,8 +351,9 @@ static inline map_word map_word_ff(struct map_info *map)
map_word r;
int i;

if (map_bank_width(map) < MAP_FF_LIMIT) {
r.x[0] = (1 << (8*map_bank_width(map))) - 1;
if (map_bankwidth(map) < MAP_FF_LIMIT) {
int bw = 8 * map_bankwidth;
r.x[0] = (1 << bw) - 1;
} else {
for (i=0; i<map_words(map); i++)
r.x[i] = ~0UL;
Expand Down

0 comments on commit 4593a5d

Please sign in to comment.