mtd: m25p80 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>
This commit is contained in:
committed by
Artem Bityutskiy
parent
5c4eefbd5b
commit
4d1220f6fa
@@ -968,13 +968,7 @@ static int __devinit m25p_probe(struct spi_device *spi)
|
|||||||
/* partitions should match sector boundaries; and it may be good to
|
/* partitions should match sector boundaries; and it may be good to
|
||||||
* use readonly partitions for writeprotected sectors (BP2..BP0).
|
* use readonly partitions for writeprotected sectors (BP2..BP0).
|
||||||
*/
|
*/
|
||||||
if (mtd_has_cmdlinepart()) {
|
nr_parts = parse_mtd_partitions(&flash->mtd, NULL, &parts, 0);
|
||||||
static const char *part_probes[]
|
|
||||||
= { "cmdlinepart", NULL, };
|
|
||||||
|
|
||||||
nr_parts = parse_mtd_partitions(&flash->mtd,
|
|
||||||
part_probes, &parts, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nr_parts <= 0 && data && data->parts) {
|
if (nr_parts <= 0 && data && data->parts) {
|
||||||
parts = data->parts;
|
parts = data->parts;
|
||||||
|
Reference in New Issue
Block a user