diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-05-29 12:16:57 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:01 -0400 |
commit | 8d3f8bb8093080d4e2b1de096af444b694a16766 (patch) | |
tree | d70aededd7b7e94b4ea2a73b9448c471e1a09a17 /drivers/mtd/nand/fsmc_nand.c | |
parent | a8e083246387ffb9a84551fa908a358cacdc2b0c (diff) |
mtd: fsmc_nand don't specify default parsing options
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>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/nand/fsmc_nand.c')
-rw-r--r-- | 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 8a5f1aa2b286..a39c224eb12f 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[] = { | |||
177 | }, | 177 | }, |
178 | }; | 178 | }; |
179 | 179 | ||
180 | #ifdef CONFIG_MTD_CMDLINE_PARTS | ||
181 | const char *part_probes[] = { "cmdlinepart", NULL }; | ||
182 | #endif | ||
183 | 180 | ||
184 | /** | 181 | /** |
185 | * struct fsmc_nand_data - structure for FSMC NAND device state | 182 | * struct fsmc_nand_data - structure for FSMC NAND device state |
@@ -716,15 +713,13 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) | |||
716 | * platform data, | 713 | * platform data, |
717 | * default partition information present in driver. | 714 | * default partition information present in driver. |
718 | */ | 715 | */ |
719 | #ifdef CONFIG_MTD_CMDLINE_PARTS | ||
720 | /* | 716 | /* |
721 | * Check if partition info passed via command line | 717 | * Check for partition info passed |
722 | */ | 718 | */ |
723 | host->mtd.name = "nand"; | 719 | host->mtd.name = "nand"; |
724 | host->nr_partitions = parse_mtd_partitions(&host->mtd, part_probes, | 720 | host->nr_partitions = parse_mtd_partitions(&host->mtd, NULL, |
725 | &host->partitions, 0); | 721 | &host->partitions, 0); |
726 | if (host->nr_partitions <= 0) { | 722 | if (host->nr_partitions <= 0) { |
727 | #endif | ||
728 | /* | 723 | /* |
729 | * Check if partition info passed via command line | 724 | * Check if partition info passed via command line |
730 | */ | 725 | */ |
@@ -769,9 +764,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) | |||
769 | } | 764 | } |
770 | } | 765 | } |
771 | } | 766 | } |
772 | #ifdef CONFIG_MTD_CMDLINE_PARTS | ||
773 | } | 767 | } |
774 | #endif | ||
775 | 768 | ||
776 | ret = mtd_device_register(&host->mtd, host->partitions, | 769 | ret = mtd_device_register(&host->mtd, host->partitions, |
777 | host->nr_partitions); | 770 | host->nr_partitions); |