mtd_dataflash: fix probing of AT45DB321C chips.
commita96e5528abe51b9c35e33fcac05e84bca18cefe5
authorWill Newton <will.newton@gmail.com>
Tue, 10 Mar 2009 19:55:53 +0000 (10 12:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:32:18 +0000 (16 17:32 -0700)
tree1011941cfcd5de173583123f9e2da4f1f843c45c
parentca912f23933fd14fcab90465af245597dbee9272
mtd_dataflash: fix probing of AT45DB321C chips.

commit 229cc58ba2b5a83b0b55764c6cb98695c106238a upstream.

Commit 771999b65f79264acde4b855e5d35696eca5e80c ("[MTD] DataFlash: bugfix,
binary page sizes now handled") broke support for probing AT45DB321C flash
chips.  These chips do not support the "page size" status bit, so if we
match the JEDEC id return early.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Will Newton <will.newton@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/devices/mtd_dataflash.c