mtd/tegra_nand: don't ignore return value for add_mtd_partitions
authorGary King <gking@nvidia.com>
Mon, 28 Jun 2010 22:00:10 +0000 (15:00 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:27:07 +0000 (16:27 -0700)
commit59a37210b71b179d5c8eb9932ec3c127afd3874c
tree2db68bfa1f50f971cee546170e6006865ba24127
parent8dda41150166a7310531475a713316aa0c76e668
mtd/tegra_nand: don't ignore return value for add_mtd_partitions

when the mtd partition command line format is used, ignoring the
return value left err set to the number of partitions, which was
later interpreted as an error return code for tegra_nand_probe,
which caused the MTD master to be unregistered (ultimately causing
NULL pointer derefs when mounting the root partition).

Change-Id: Icebfb295810554617c56deeafc91bc22cc43bb35
Signed-off-by: Gary King <gking@nvidia.com>
drivers/mtd/devices/tegra_nand.c