[MTD] Fix MTD device probing
authorRussell King <linux@arm.linux.org.uk>
Mon, 24 Jan 2005 23:49:54 +0000 (23:49 +0000)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Mon, 23 May 2005 10:15:15 +0000 (12:15 +0200)
commit6170b43401a3230756ff76287ee07db0d75eddde
tree771cda30b12defc6417086de0a41d1f8e81b576a
parent3118db3dfe7c16284d1d578e628fd87639b00731
[MTD] Fix MTD device probing

Try larger numbers of chips before smaller
numbers of chips across the bus width.

This means we'll avoid misdetecting a 2 x16 array as 1 x32 if the
high 16-bits happen to read as zeros in the QRY area.

Signed-off-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/chips/gen_probe.c