Skip to content

Commit

Permalink
mtd: nand: sharpsl: Register partitions using the parsers
Browse files Browse the repository at this point in the history
With the introduction of sharpslpart partition parser we can now read the
offsets from NAND: we specify the list of the parsers as platform data, with
cmdlinepart and ofpart parsers first allowing to override the part. table
written in NAND. This is done in the board files using this driver.

Use now these parsers.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
  • Loading branch information
Andrea Adami authored and Boris Brezillon committed Aug 23, 2017
1 parent e59ad6f commit 482ead9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/sharpsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
/* Register the partitions */
mtd->name = "sharpsl-nand";

err = mtd_device_parse_register(mtd, NULL, NULL,
err = mtd_device_parse_register(mtd, data->part_parsers, NULL,
data->partitions, data->nr_partitions);
if (err)
goto err_add;
Expand Down

0 comments on commit 482ead9

Please sign in to comment.