mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 02:54:32 +08:00
mtd: cafe_nand: drop reference to CONFIG_MTD_CMDLINE_PARTS
There is no need to guard mtd->name with CONFIG_MTD_CMDLINE_PARTS as name can be used by other parts. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
13e0fe49f6
commit
2e7485f499
@ -803,9 +803,7 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
|
||||
/* We register the whole device first, separate from the partitions */
|
||||
mtd_device_register(mtd, NULL, 0);
|
||||
|
||||
#ifdef CONFIG_MTD_CMDLINE_PARTS
|
||||
mtd->name = "cafe_nand";
|
||||
#endif
|
||||
nr_parts = parse_mtd_partitions(mtd, part_probes, &parts, 0);
|
||||
if (nr_parts > 0) {
|
||||
cafe->parts = parts;
|
||||
|
Loading…
Reference in New Issue
Block a user