diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-05-29 12:17:09 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:03 -0400 |
commit | 7221eb1296b3ebb0038dabeb88fe17a4fc62e920 (patch) | |
tree | 23398e2f67728d1d8f6d2cdd8167eb997cb873e7 /drivers/mtd | |
parent | a4c93614fded8ef0be90fca6a619d3c9c3e9552f (diff) |
mtd: socrates_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.
Artem: tweaked the patch
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/socrates_nand.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index ca2d0555729e..9023ac833fcf 100644 --- a/drivers/mtd/nand/socrates_nand.c +++ b/drivers/mtd/nand/socrates_nand.c | |||
@@ -155,8 +155,6 @@ static int socrates_nand_device_ready(struct mtd_info *mtd) | |||
155 | return 1; | 155 | return 1; |
156 | } | 156 | } |
157 | 157 | ||
158 | static const char *part_probes[] = { "cmdlinepart", NULL }; | ||
159 | |||
160 | /* | 158 | /* |
161 | * Probe for the NAND device. | 159 | * Probe for the NAND device. |
162 | */ | 160 | */ |
@@ -225,14 +223,11 @@ static int __devinit socrates_nand_probe(struct platform_device *ofdev) | |||
225 | goto out; | 223 | goto out; |
226 | } | 224 | } |
227 | 225 | ||
228 | #ifdef CONFIG_MTD_CMDLINE_PARTS | 226 | num_partitions = parse_mtd_partitions(mtd, NULL, &partitions, 0); |
229 | num_partitions = parse_mtd_partitions(mtd, part_probes, | ||
230 | &partitions, 0); | ||
231 | if (num_partitions < 0) { | 227 | if (num_partitions < 0) { |
232 | res = num_partitions; | 228 | res = num_partitions; |
233 | goto release; | 229 | goto release; |
234 | } | 230 | } |
235 | #endif | ||
236 | 231 | ||
237 | if (num_partitions == 0) { | 232 | if (num_partitions == 0) { |
238 | num_partitions = of_mtd_parse_partitions(&ofdev->dev, | 233 | num_partitions = of_mtd_parse_partitions(&ofdev->dev, |