diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/mxc_nd2.c | 10 |
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 = |