diff options
-rw-r--r-- | drivers/mtd/nand/cafe_nand.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c index b8064bf3aee4..22a6b2e50e91 100644 --- a/drivers/mtd/nand/cafe_nand.c +++ b/drivers/mtd/nand/cafe_nand.c | |||
@@ -90,7 +90,7 @@ static int timing[3]; | |||
90 | module_param_array(timing, int, &numtimings, 0644); | 90 | module_param_array(timing, int, &numtimings, 0644); |
91 | 91 | ||
92 | #ifdef CONFIG_MTD_PARTITIONS | 92 | #ifdef CONFIG_MTD_PARTITIONS |
93 | static const char *part_probes[] = { "RedBoot", NULL }; | 93 | static const char *part_probes[] = { "cmdlinepart", "RedBoot", NULL }; |
94 | #endif | 94 | #endif |
95 | 95 | ||
96 | /* Hrm. Why isn't this already conditional on something in the struct device? */ | 96 | /* Hrm. Why isn't this already conditional on something in the struct device? */ |
@@ -805,10 +805,13 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev, | |||
805 | add_mtd_device(mtd); | 805 | add_mtd_device(mtd); |
806 | 806 | ||
807 | #ifdef CONFIG_MTD_PARTITIONS | 807 | #ifdef CONFIG_MTD_PARTITIONS |
808 | #ifdef CONFIG_MTD_CMDLINE_PARTS | ||
809 | mtd->name = "cafe_nand"; | ||
810 | #endif | ||
808 | nr_parts = parse_mtd_partitions(mtd, part_probes, &parts, 0); | 811 | nr_parts = parse_mtd_partitions(mtd, part_probes, &parts, 0); |
809 | if (nr_parts > 0) { | 812 | if (nr_parts > 0) { |
810 | cafe->parts = parts; | 813 | cafe->parts = parts; |
811 | dev_info(&cafe->pdev->dev, "%d RedBoot partitions found\n", nr_parts); | 814 | dev_info(&cafe->pdev->dev, "%d partitions found\n", nr_parts); |
812 | add_mtd_partitions(mtd, parts, nr_parts); | 815 | add_mtd_partitions(mtd, parts, nr_parts); |
813 | } | 816 | } |
814 | #endif | 817 | #endif |