MIPS: Fix gen_nand probe structures contents

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Aug 12 07:59:02 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d2b5bbef2198f82280441ab1ea7f634d615d913b
Commit:     d2b5bbef2198f82280441ab1ea7f634d615d913b
Parent:     01cd2ababddd55a127caa1cd20d570637e0d42e1
Author:     Marek Vasut <marek.vasut at gmail.com>
AuthorDate: Thu Aug 12 03:53:54 2010 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Aug 12 12:22:49 2010 +0100

    MIPS: Fix gen_nand probe structures contents
    
    This platform didn't properly fill nr_chips in gen_nand
    registration and therefore depended on gen_nand bug fixed by commit
    81cbb0b17796d81cbd92defe113cf2a7c7a21fbb ("mtd: gen_nand: fix support for
    multiple chips")
    
    Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 arch/mips/pnx833x/common/platform.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/mips/pnx833x/common/platform.c b/arch/mips/pnx833x/common/platform.c
index 01f8345..ce45df1 100644
--- a/arch/mips/pnx833x/common/platform.c
+++ b/arch/mips/pnx833x/common/platform.c
@@ -266,6 +266,7 @@ pnx833x_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
 
 static struct platform_nand_data pnx833x_flash_nand_data = {
 	.chip = {
+		.nr_chips		= 1,
 		.chip_delay		= 25,
 		.part_probe_types 	= part_probes,
 	},



More information about the linux-mtd-cvs mailing list