summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorPedro Perez de Heredia <pedro.perez@digi.com>2010-04-06 01:52:56 +0200
committerPedro Perez de Heredia <pedro.perez@digi.com>2010-04-06 01:52:56 +0200
commitb216e4ba0e03996126537fe447f4f2b19369decf (patch)
treefbd5b669668748abdeef730bb5f6d3b945cddb52 /drivers/mtd
parent58802bd38d445cfa9b96cb2abfd75a1817be414c (diff)
mxc_nd2: add specific support for ccxmx51 modules (cmd line mtd partitions)
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/mxc_nd2.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/mtd/nand/mxc_nd2.c b/drivers/mtd/nand/mxc_nd2.c
index 22249a04d620..3cd670d38753 100644
--- a/drivers/mtd/nand/mxc_nd2.c
+++ b/drivers/mtd/nand/mxc_nd2.c
@@ -107,7 +107,12 @@ static struct nand_ecclayout nand_hw_eccoob_4k = {
*/
#ifdef CONFIG_MTD_PARTITIONS
-static const char *part_probes[] = { "RedBoot", "cmdlinepart", NULL };
+static const char *part_probes[] = {
+#ifndef CONFIG_MODULE_CCXMX51
+ "RedBoot",
+#endif
+ "cmdlinepart", NULL
+};
#endif
static wait_queue_head_t irq_waitq;
@@ -1345,8 +1350,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
/* Register the partitions */
#ifdef CONFIG_MTD_PARTITIONS
-#if defined(CONFIG_MACH_CCWMX51JS) || defined(CONFIG_MACH_CCMX51JS) || \
- defined(CONFIG_MACH_CCWMX51) || defined(CONFIG_MACH_CCMX51)
+#ifdef CONFIG_MODULE_CCXMX51
mtd->name= "onboard_boot";
#endif
nr_parts =