public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MTD: OMAP2-NAND: Fix partition reading from board info
@ 2008-07-01 14:32 Kamat, Nishant
  2008-07-01 23:27 ` Kyungmin Park
  0 siblings, 1 reply; 15+ messages in thread
From: Kamat, Nishant @ 2008-07-01 14:32 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org


From: Nishant Kamat <nskamat@ti.com>

MTD: OMAP2-NAND: Fix partition reading from board info

The parse_mtd_partitions() function no longer returns
a negative error in case cmdline is not passed.
See commit: b0d06afb607

Signed-off-by: Nishant Kamat <nskamat@ti.com>
---
 drivers/mtd/nand/omap2.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-omap-ti.ldp/drivers/mtd/nand/omap2.c
===================================================================
--- linux-omap-ti.ldp.orig/drivers/mtd/nand/omap2.c     2008-06-30 22:01:50.000000000 +0530
+++ linux-omap-ti.ldp/drivers/mtd/nand/omap2.c  2008-06-30 22:03:34.446471469 +0530
@@ -699,7 +699,7 @@
        err = parse_mtd_partitions(&info->mtd, part_probes, &info->parts, 0);
        if (err > 0)
                add_mtd_partitions(&info->mtd, info->parts, err);
-       else if (err < 0 && pdata->parts)
+       else if (pdata->parts)
                add_mtd_partitions(&info->mtd, pdata->parts, pdata->nr_parts);
        else
 #endif

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-08-04 22:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 14:32 [PATCH] MTD: OMAP2-NAND: Fix partition reading from board info Kamat, Nishant
2008-07-01 23:27 ` Kyungmin Park
2008-07-03  9:18   ` Kamat, Nishant
2008-08-04 14:24     ` Tony Lindgren
2008-08-04 20:02       ` David Brownell
2008-08-04 20:17         ` Lennert Buytenhek
2008-08-04 20:26           ` David Brownell
2008-08-04 20:56             ` Lennert Buytenhek
2008-08-04 21:37               ` David Brownell
2008-08-04 21:42                 ` Lennert Buytenhek
2008-08-04 21:23             ` Woodruff, Richard
2008-08-04 21:32               ` Lennert Buytenhek
2008-08-04 21:45                 ` Woodruff, Richard
2008-08-04 21:49                   ` Lennert Buytenhek
2008-08-04 22:10                     ` Woodruff, Richard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox