mtd: maps: 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: Boris Brezillon <boris.brezillon@bootlin.com>
This commit is contained in:

committed by
Boris Brezillon

parent
9ea97a7d68
commit
4897015d2f
@@ -97,8 +97,7 @@ static int rbtx4939_flash_probe(struct platform_device *dev)
|
||||
goto err_out;
|
||||
}
|
||||
info->mtd->dev.parent = &dev->dev;
|
||||
err = mtd_device_parse_register(info->mtd, NULL, NULL, pdata->parts,
|
||||
pdata->nr_parts);
|
||||
err = mtd_device_register(info->mtd, pdata->parts, pdata->nr_parts);
|
||||
|
||||
if (err)
|
||||
goto err_out;
|
||||
|
Reference in New Issue
Block a user