OSDN Git Service

mtd: gen_nand: fix support for multiple chips
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 28 Jul 2010 05:36:54 +0000 (07:36 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:31:04 +0000 (13:31 -0700)
commita456e2bf311123a0d2fa313a7e51611ab7b0439e
tree71f2b9cad59f814af8ad5214d5cb2a1128f65bea
parent01806c2cc09e580a312c9812d4c88e7ed9dfffb6
mtd: gen_nand: fix support for multiple chips

commit 81cbb0b17796d81cbd92defe113cf2a7c7a21fbb upstream.

This patch corrects a problem where gen_nand driver assumed there can be only
one chip and ignored the pdata->chip.nr_chips value.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/nand/plat_nand.c