diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-05-29 12:17:06 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:03 -0400 |
commit | c842f570a6e3ac002389ab7154084e32f4f5021a (patch) | |
tree | 2a296a31ad91e19b585f93f6cd52299ba2d81e38 /drivers/mtd/nand/pxa3xx_nand.c | |
parent | 16b206e62f9b43ba864571a6808844aaddea7479 (diff) |
mtd: pxa3xx_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/pxa3xx_nand.c')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index e11f926c9335..c7da3c8be9d6 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c | |||
@@ -1129,6 +1129,8 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) | |||
1129 | { | 1129 | { |
1130 | struct pxa3xx_nand_platform_data *pdata; | 1130 | struct pxa3xx_nand_platform_data *pdata; |
1131 | struct pxa3xx_nand_info *info; | 1131 | struct pxa3xx_nand_info *info; |
1132 | struct mtd_partition *parts; | ||
1133 | int nr_parts; | ||
1132 | 1134 | ||
1133 | pdata = pdev->dev.platform_data; | 1135 | pdata = pdev->dev.platform_data; |
1134 | if (!pdata) { | 1136 | if (!pdata) { |
@@ -1146,16 +1148,11 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) | |||
1146 | return -ENODEV; | 1148 | return -ENODEV; |
1147 | } | 1149 | } |
1148 | 1150 | ||
1149 | if (mtd_has_cmdlinepart()) { | ||
1150 | const char *probes[] = { "cmdlinepart", NULL }; | ||
1151 | struct mtd_partition *parts; | ||
1152 | int nr_parts; | ||
1153 | 1151 | ||
1154 | nr_parts = parse_mtd_partitions(info->mtd, probes, &parts, 0); | 1152 | nr_parts = parse_mtd_partitions(info->mtd, NULL, &parts, 0); |
1155 | 1153 | ||
1156 | if (nr_parts) | 1154 | if (nr_parts) |
1157 | return mtd_device_register(info->mtd, parts, nr_parts); | 1155 | return mtd_device_register(info->mtd, parts, nr_parts); |
1158 | } | ||
1159 | 1156 | ||
1160 | return mtd_device_register(info->mtd, pdata->parts, pdata->nr_parts); | 1157 | return mtd_device_register(info->mtd, pdata->parts, pdata->nr_parts); |
1161 | } | 1158 | } |