projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bf57b0
)
mtd: lantiq-flash: use default partition parsers
author
Brian Norris
<computersforpeace@gmail.com>
Mon, 18 May 2015 23:17:11 +0000
(16:17 -0700)
committer
Brian Norris
<computersforpeace@gmail.com>
Wed, 27 May 2015 19:35:12 +0000
(12:35 -0700)
The default implementation already probes for cmdlinepart and ofpart.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/lantiq-flash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/lantiq-flash.c
b/drivers/mtd/maps/lantiq-flash.c
index 33d26f5bee549ecd8bae2426ec9de3028e217d85..e2f878216048eed8ac69e973d5da7e9f4e668147 100644
(file)
--- 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;