summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-05-19 01:17:11 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-05-27 21:35:12 +0200
commitc3c263a8a38c277e8867bfc7731ec95846a23b11 (patch)
treebb266c04721537f4c0ccb33763493320b60ca450 /drivers/mtd/maps
parentmtd: plat_nand: use default partition probe (diff)
downloadlinux-c3c263a8a38c277e8867bfc7731ec95846a23b11.tar.xz
linux-c3c263a8a38c277e8867bfc7731ec95846a23b11.zip
mtd: lantiq-flash: use default partition parsers
The default implementation already probes for cmdlinepart and ofpart. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/lantiq-flash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c
index 33d26f5bee54..e2f878216048 100644
--- a/drivers/mtd/maps/lantiq-flash.c
+++ b/drivers/mtd/maps/lantiq-flash.c
@@ -45,7 +45,6 @@ struct ltq_mtd {
};
static const char ltq_map_name[] = "ltq_nor";
-static const char * const ltq_probe_types[] = { "cmdlinepart", "ofpart", NULL };
static map_word
ltq_read16(struct map_info *map, unsigned long adr)
@@ -168,8 +167,7 @@ ltq_mtd_probe(struct platform_device *pdev)
cfi->addr_unlock2 ^= 1;
ppdata.of_node = pdev->dev.of_node;
- err = mtd_device_parse_register(ltq_mtd->mtd, ltq_probe_types,
- &ppdata, NULL, 0);
+ err = mtd_device_parse_register(ltq_mtd->mtd, NULL, &ppdata, NULL, 0);
if (err) {
dev_err(&pdev->dev, "failed to add partitions\n");
goto err_destroy;