Message ID | 20180721115510.24078-1-zajec5@gmail.com |
---|---|
State | Accepted |
Delegated to: | Boris Brezillon |
Headers | show |
Series | [1/2] mtd: lpddr: use mtd_device_register() | expand |
On Sat, 21 Jul 2018 13:55:09 +0200 Rafał Miłecki <zajec5@gmail.com> wrote: > From: Rafał Miłecki <rafal@milecki.pl> > > This driver doesn't specify parsers so it can use that little helper. > > Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Applied this one to mtd/next. > --- > drivers/mtd/lpddr/lpddr2_nvm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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); > } > > /*
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); } /*