From: Dmitry Eremin-Solenikov Date: Sun, 29 May 2011 16:16:43 +0000 (+0400) Subject: mtd: sst25l don't specify default parsing options X-Git-Tag: next-20110726~35^2~147 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b5d029799b49911f7c5ef9fbef0c55c74239a8d7;p=karo-tx-linux.git mtd: sst25l 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 Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 1e2c430aaad2..cd095afd0477 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c @@ -423,13 +423,7 @@ static int __devinit sst25l_probe(struct spi_device *spi) flash->mtd.numeraseregions); - if (mtd_has_cmdlinepart()) { - static const char *part_probes[] = {"cmdlinepart", NULL}; - - nr_parts = parse_mtd_partitions(&flash->mtd, - part_probes, - &parts, 0); - } + nr_parts = parse_mtd_partitions(&flash->mtd, NULL, &parts, 0); if (nr_parts <= 0 && data && data->parts) { parts = data->parts;