mtd: lantiq-flash: use default partition parsers

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 23 10:59:06 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c3c263a8a38c277e8867bfc7731ec95846a23b11
Commit:     c3c263a8a38c277e8867bfc7731ec95846a23b11
Parent:     8bf57b0dd431e521d7b3f34e0681fbb2536e86b8
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Mon May 18 16:17:11 2015 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed May 27 12:35:12 2015 -0700

    mtd: lantiq-flash: use default partition parsers
    
    The default implementation already probes for cmdlinepart and ofpart.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/maps/lantiq-flash.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c
index 33d26f5..e2f8782 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;



More information about the linux-mtd-cvs mailing list