summaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-07-21 13:55:09 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-07-24 07:50:22 +0200
commit8c15e21c3508f48c291591fefa9beee0a08a3447 (patch)
treee66361147de5f9d1e0ca2ef62f2fe5cc32fe2334 /drivers/mtd/lpddr
parentd70420bcd447e5400a0116b20b9b6088bb32448e (diff)
downloadlinux-8c15e21c3508f48c291591fefa9beee0a08a3447.tar.gz
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>
Diffstat (limited to 'drivers/mtd/lpddr')
-rw-r--r--drivers/mtd/lpddr/lpddr2_nvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/lpddr/lpddr2_nvm.c b/drivers/mtd/lpddr/lpddr2_nvm.c
index 5d73db2a496d..c950c880ad59 100644
--- a/drivers/mtd/lpddr/lpddr2_nvm.c
+++ b/drivers/mtd/lpddr/lpddr2_nvm.c
@@ -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);
}
/*