Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81cbb0b1 authored by Marek Vasut's avatar Marek Vasut Committed by David Woodhouse
Browse files

mtd: gen_nand: fix support for multiple chips



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: default avatarMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 6f92355c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -91,7 +91,7 @@ static int __devinit plat_nand_probe(struct platform_device *pdev)
	}
	}


	/* Scan to find existance of the device */
	/* Scan to find existance of the device */
	if (nand_scan(&data->mtd, 1)) {
	if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
		err = -ENXIO;
		err = -ENXIO;
		goto out;
		goto out;
	}
	}