mtd: cafe_nand: drop reference to CONFIG_MTD_CMDLINE_PARTS

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:04 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=2e7485f49984ad9cea2d039acfd0554217710cce
Commit:     2e7485f49984ad9cea2d039acfd0554217710cce
Parent:     13e0fe49f676607688da7475c33540ec5dac53b5
Author:     Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
AuthorDate: Thu Jun 2 18:51:15 2011 +0400
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:01:57 2011 +0300

    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 at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
 drivers/mtd/nand/cafe_nand.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c
index d0eed49..88ac4b5 100644
--- a/drivers/mtd/nand/cafe_nand.c
+++ b/drivers/mtd/nand/cafe_nand.c
@@ -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;



More information about the linux-mtd-cvs mailing list