mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
mtd: lpddr: use mtd_device_register()
This driver doesn't specify parsers so 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:
parent
d70420bcd4
commit
8c15e21c35
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ static int lpddr2_nvm_probe(struct platform_device *pdev)
|
|||
return -EINVAL;
|
||||
}
|
||||
/* Parse partitions and register the MTD device */
|
||||
return mtd_device_parse_register(mtd, NULL, NULL, NULL, 0);
|
||||
return mtd_device_register(mtd, NULL, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue