public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mtd: lpddr: use mtd_device_register()
@ 2018-07-21 11:55 Rafał Miłecki
  2018-07-21 11:55 ` [PATCH 2/2] mtd: spi-nor: intel-spi: " Rafał Miłecki
  2018-07-24  5:57 ` [PATCH 1/2] mtd: lpddr: " Boris Brezillon
  0 siblings, 2 replies; 4+ messages in thread
From: Rafał Miłecki @ 2018-07-21 11:55 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
	Richard Weinberger
  Cc: Miquel Raynal, Bert Kenward, linux-mtd, Rafał Miłecki

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>
---
 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);
 }
 
 /*
-- 
2.13.7

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-24  8:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-21 11:55 [PATCH 1/2] mtd: lpddr: use mtd_device_register() Rafał Miłecki
2018-07-21 11:55 ` [PATCH 2/2] mtd: spi-nor: intel-spi: " Rafał Miłecki
2018-07-24  8:42   ` Boris Brezillon
2018-07-24  5:57 ` [PATCH 1/2] mtd: lpddr: " Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox