Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MTD] Fix it really

tglx declares him self to be the idiot of the day.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Thomas Gleixner and committed by
Thomas Gleixner
a8aff8ab b0435695

+2 -2
+2 -2
include/linux/mtd/map.h
··· 1 1 2 2 /* 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 $ */ 4 4 5 5 #ifndef __LINUX_MTD_MAP_H__ 6 6 #define __LINUX_MTD_MAP_H__ ··· 352 352 int i; 353 353 354 354 if (map_bankwidth(map) < MAP_FF_LIMIT) { 355 - int bw = 8 * map_bankwidth; 355 + int bw = 8 * map_bankwidth(map); 356 356 r.x[0] = (1 << bw) - 1; 357 357 } else { 358 358 for (i=0; i<map_words(map); i++)