public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
To: linux-mtd@lists.infradead.org
Cc: David Woodhouse <dwmw2@infradead.org>, dedekind1@gmail.com
Subject: [PATCH 14/32] mtd: fsmc_nand don't specify default parsing options
Date: Mon,  6 Jun 2011 13:16:04 +0400	[thread overview]
Message-ID: <1307351782-7456-14-git-send-email-dbaryshkov@gmail.com> (raw)
In-Reply-To: <1307351782-7456-1-git-send-email-dbaryshkov@gmail.com>

Since 'cmdline, NULL' is now a default for parse_mtd_partitions, don't specify
this in every driver, instead pass NULL to force parse_mtd_partitions
to use default.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 drivers/mtd/nand/fsmc_nand.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index e9b275a..80abbb2 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -177,9 +177,6 @@ static struct mtd_partition partition_info_128KB_blk[] = {
 	},
 };
 
-#ifdef CONFIG_MTD_CMDLINE_PARTS
-const char *part_probes[] = { "cmdlinepart", NULL };
-#endif
 
 /**
  * struct fsmc_nand_data - structure for FSMC NAND device state
@@ -716,15 +713,13 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
 	 * platform data,
 	 * default partition information present in driver.
 	 */
-#ifdef CONFIG_MTD_CMDLINE_PARTS
 	/*
-	 * Check if partition info passed via command line
+	 * Check for partition info passed
 	 */
 	host->mtd.name = "nand";
-	host->nr_partitions = parse_mtd_partitions(&host->mtd, part_probes,
+	host->nr_partitions = parse_mtd_partitions(&host->mtd, NULL,
 			&host->partitions, 0);
 	if (host->nr_partitions <= 0) {
-#endif
 		/*
 		 * Check if partition info passed via command line
 		 */
@@ -769,9 +764,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
 				}
 			}
 		}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
 	}
-#endif
 
 	ret = mtd_device_register(&host->mtd, host->partitions,
 				  host->nr_partitions);
-- 
1.7.4.4

  parent reply	other threads:[~2011-06-06  9:16 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06  9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
2011-06-06  9:15 ` [PATCH 02/32] mtd: sst25l " Dmitry Eremin-Solenikov
2011-06-06  9:15 ` [PATCH 03/32] mtd: h720x-flash " Dmitry Eremin-Solenikov
2011-06-06  9:15 ` [PATCH 04/32] mtd: impa7 " Dmitry Eremin-Solenikov
2011-06-06  9:15 ` [PATCH 05/32] mtd: intel_vr_nor " Dmitry Eremin-Solenikov
2011-06-06  9:15 ` [PATCH 06/32] mtd: rbtx4939-flash " Dmitry Eremin-Solenikov
2011-06-06 11:42   ` Artem Bityutskiy
2011-06-06  9:15 ` [PATCH 07/32] mtd: atmel_nand " Dmitry Eremin-Solenikov
2011-06-06 11:47   ` Artem Bityutskiy
2011-06-06  9:15 ` [PATCH 08/32] mtd: bcm_umi_nand " Dmitry Eremin-Solenikov
2011-06-06  9:15 ` [PATCH 09/32] mtd: cmx270_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 10/32] mtd: cs553x_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 11/32] mtd: davinci_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 12/32] mtd: edb7312 " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 13/32] mtd: fsl_upm " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` Dmitry Eremin-Solenikov [this message]
2011-06-06  9:16 ` [PATCH 15/32] mtd: h1910 " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 16/32] mtd: jz4740_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 17/32] mtd: lantiq-flash " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 18/32] mtd: latch-addr-flash " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 19/32] mtd: mpc5121_nfc " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 20/32] mtd: ndfc " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 21/32] mtd: omap2 " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 22/32] mtd: orion_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 23/32] mtd: ppchameleonevb " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 24/32] mtd: pxa3xx_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 25/32] mtd: s3c2410 " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 26/32] mtd: sharpsl " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 27/32] mtd: socrates_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 28/32] mtd: tmio_nand " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 29/32] mtd: txx9ndfmc " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 30/32] mtd: onenand/generic " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 31/32] mtd: onenand/omap2 " Dmitry Eremin-Solenikov
2011-06-06  9:16 ` [PATCH 32/32] mtd: samsung/onenand " Dmitry Eremin-Solenikov
2011-06-06 11:04 ` [PATCH 01/32] mtd: mtd_dataflash " Artem Bityutskiy
2011-06-06 11:19   ` Dmitry Eremin-Solenikov
2011-06-06 12:02     ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307351782-7456-14-git-send-email-dbaryshkov@gmail.com \
    --to=dbaryshkov@gmail.com \
    --cc=dedekind1@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox