]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[MTD] Fix CFI build error when no map width or interleave supported
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 6 Sep 2007 08:40:21 +0000 (09:40 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 6 Sep 2007 08:40:21 +0000 (09:40 +0100)
commit241651d04d672fb685b2874707016cbbf95931e5
tree6432d3ef181b83afc6c4f54d8ea0876367547348
parentd15057b7034d9fdc4259b66a0367c9d8ffcf0620
[MTD] Fix CFI build error when no map width or interleave supported

When building NOR flash support, you have compile-time options for the
bus width and the number of individual chips which are interleaved
together onto that bus. The code to deal with arbitrary geometry is a
bit convoluted, and people want to just configure it for the specific
hardware they have, to avoid the runtime overhead.

Selecting _none_ of the available options doesn't make any sense. You
should have at least one. This makes it build though, since people
persist in trying.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
include/linux/mtd/cfi.h
include/linux/mtd/map.h