Skip to content

Commit a8aff8a

Browse files
Thomas GleixnerThomas Gleixner
authored andcommitted
[MTD] Fix it really
tglx declares him self to be the idiot of the day. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent b043569 commit a8aff8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/mtd/map.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/* Overhauled routines for dealing with different mmap regions of flash */
3-
/* $Id: map.h,v 1.51 2005/05/25 10:15:29 gleixner Exp $ */
3+
/* $Id: map.h,v 1.52 2005/05/25 10:29:41 gleixner Exp $ */
44

55
#ifndef __LINUX_MTD_MAP_H__
66
#define __LINUX_MTD_MAP_H__
@@ -352,7 +352,7 @@ static inline map_word map_word_ff(struct map_info *map)
352352
int i;
353353

354354
if (map_bankwidth(map) < MAP_FF_LIMIT) {
355-
int bw = 8 * map_bankwidth;
355+
int bw = 8 * map_bankwidth(map);
356356
r.x[0] = (1 << bw) - 1;
357357
} else {
358358
for (i=0; i<map_words(map); i++)

0 commit comments

Comments
 (0)