aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-10-30 07:35:11 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-10-30 07:35:11 -0400
commit67577927e8d7a1f4b09b4992df640eadc6aacb36 (patch)
tree2e9efe6b5745965faf0dcc084d4613d9356263f9 /drivers/mtd/devices
parent6fe4c590313133ebd5dadb769031489ff178ece1 (diff)
parent51f00a471ce8f359627dd99aeac322947a0e491b (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Conflicts: drivers/mtd/mtd_blkdevs.c Merge Grant's device-tree bits so that we can apply the subsequent fixes. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/lart.c2
-rw-r--r--drivers/mtd/devices/m25p80.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mtd/devices/lart.c b/drivers/mtd/devices/lart.c
index f4359fe7150f..caf604167f03 100644
--- a/drivers/mtd/devices/lart.c
+++ b/drivers/mtd/devices/lart.c
@@ -17,7 +17,7 @@
17 * - January 2000 17 * - January 2000
18 * 18 *
19 * [2] MTD internal API documentation 19 * [2] MTD internal API documentation
20 * - http://www.linux-mtd.infradead.org/tech/ 20 * - http://www.linux-mtd.infradead.org/
21 * 21 *
22 * Limitations: 22 * Limitations:
23 * 23 *
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 7e0edd40ad41..669d2b7e36bb 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -928,6 +928,13 @@ static int __devinit m25p_probe(struct spi_device *spi)
928 nr_parts = data->nr_parts; 928 nr_parts = data->nr_parts;
929 } 929 }
930 930
931#ifdef CONFIG_OF
932 if (nr_parts <= 0 && spi->dev.of_node) {
933 nr_parts = of_mtd_parse_partitions(&spi->dev,
934 spi->dev.of_node, &parts);
935 }
936#endif
937
931 if (nr_parts > 0) { 938 if (nr_parts > 0) {
932 for (i = 0; i < nr_parts; i++) { 939 for (i = 0; i < nr_parts; i++) {
933 DEBUG(MTD_DEBUG_LEVEL2, "partitions[%d] = " 940 DEBUG(MTD_DEBUG_LEVEL2, "partitions[%d] = "