Skip to content

Commit b043569

Browse files
Thomas GleixnerThomas Gleixner
authored andcommitted
[MTD] map.h Use the correct macro and fix the resulting compiler warning
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 3a3ab48 commit b043569

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

include/linux/mtd/map.h

Lines changed: 4 additions & 3 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.49 2005/05/24 18:45:15 gleixner Exp $ */
3+
/* $Id: map.h,v 1.51 2005/05/25 10:15:29 gleixner Exp $ */
44

55
#ifndef __LINUX_MTD_MAP_H__
66
#define __LINUX_MTD_MAP_H__
@@ -351,8 +351,9 @@ static inline map_word map_word_ff(struct map_info *map)
351351
map_word r;
352352
int i;
353353

354-
if (map_bank_width(map) < MAP_FF_LIMIT) {
355-
r.x[0] = (1 << (8*map_bank_width(map))) - 1;
354+
if (map_bankwidth(map) < MAP_FF_LIMIT) {
355+
int bw = 8 * map_bankwidth;
356+
r.x[0] = (1 << bw) - 1;
356357
} else {
357358
for (i=0; i<map_words(map); i++)
358359
r.x[i] = ~0UL;

0 commit comments

Comments
 (0)