diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-07-13 11:27:32 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-19 23:14:12 +0200 |
commit | e8b0ac398f5ec16b249f5243d8011d490e3b91c0 (patch) | |
tree | 49b485dd31faef7928f26d8e8fb87e5086420007 /drivers/mtd/nand/onenand/generic.c | |
parent | 29597ca14dee1611eafbc09ae0c6bd756687105f (diff) |
mtd: onenand: use mtd_device_register() where applicable
If driver doesn't specify parsers it can use that little helper.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/onenand/generic.c')
-rw-r--r-- | drivers/mtd/nand/onenand/generic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/onenand/generic.c b/drivers/mtd/nand/onenand/generic.c index d5ccaf943b91..acad17ec6581 100644 --- a/drivers/mtd/nand/onenand/generic.c +++ b/drivers/mtd/nand/onenand/generic.c @@ -66,9 +66,8 @@ static int generic_onenand_probe(struct platform_device *pdev) goto out_iounmap; } - err = mtd_device_parse_register(&info->mtd, NULL, NULL, - pdata ? pdata->parts : NULL, - pdata ? pdata->nr_parts : 0); + err = mtd_device_register(&info->mtd, pdata ? pdata->parts : NULL, + pdata ? pdata->nr_parts : 0); platform_set_drvdata(pdev, info); |