tree 1fd9699dacd03089d3818203d2959a6eb311675b
parent 3a3ab48c68de656736f091c6ed768fa8c110a7ab
author Thomas Gleixner <[EMAIL PROTECTED]> Wed, 25 May 2005 12:20:29 +0200
committer Thomas Gleixner <[EMAIL PROTECTED]> Wed, 25 May 2005 12:20:29 +0200

[MTD] map.h Use the correct macro and fix the resulting compiler warning

Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>

 include/linux/mtd/map.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h
--- a/include/linux/mtd/map.h
+++ b/include/linux/mtd/map.h
@@ -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__
@@ -351,8 +351,9 @@ static inline map_word map_word_ff(struc
        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;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to