mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-01 11:54:10 +00:00
mtd: lantiq-flash: use default partition parsers
The default implementation already probes for cmdlinepart and ofpart. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
8bf57b0dd4
commit
c3c263a8a3
1 changed files with 1 additions and 3 deletions
|
@ -45,7 +45,6 @@ struct ltq_mtd {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char ltq_map_name[] = "ltq_nor";
|
static const char ltq_map_name[] = "ltq_nor";
|
||||||
static const char * const ltq_probe_types[] = { "cmdlinepart", "ofpart", NULL };
|
|
||||||
|
|
||||||
static map_word
|
static map_word
|
||||||
ltq_read16(struct map_info *map, unsigned long adr)
|
ltq_read16(struct map_info *map, unsigned long adr)
|
||||||
|
@ -168,8 +167,7 @@ ltq_mtd_probe(struct platform_device *pdev)
|
||||||
cfi->addr_unlock2 ^= 1;
|
cfi->addr_unlock2 ^= 1;
|
||||||
|
|
||||||
ppdata.of_node = pdev->dev.of_node;
|
ppdata.of_node = pdev->dev.of_node;
|
||||||
err = mtd_device_parse_register(ltq_mtd->mtd, ltq_probe_types,
|
err = mtd_device_parse_register(ltq_mtd->mtd, NULL, &ppdata, NULL, 0);
|
||||||
&ppdata, NULL, 0);
|
|
||||||
if (err) {
|
if (err) {
|
||||||
dev_err(&pdev->dev, "failed to add partitions\n");
|
dev_err(&pdev->dev, "failed to add partitions\n");
|
||||||
goto err_destroy;
|
goto err_destroy;
|
||||||
|
|
Loading…
Add table
Reference in a new issue