Skip to content

Commit

Permalink
mtd: cafe_nand: drop reference to CONFIG_MTD_CMDLINE_PARTS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 13e0fe4 commit 2e7485f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mtd/nand/cafe_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e7485f

Please sign in to comment.