From: andrea.adami@gmail.com (Andrea Adami)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 4/9] mtd: nand: sharpsl: Register partitions using the parsers
Date: Mon, 14 Aug 2017 22:48:35 +0200 [thread overview]
Message-ID: <1502743720-28672-5-git-send-email-andrea.adami@gmail.com> (raw)
In-Reply-To: <1502743720-28672-1-git-send-email-andrea.adami@gmail.com>
With the introduction of sharpslpart partition parser we can now read the
offsets from NAND: we specify the list of the parsers as platform data, with
cmdlinepart and ofpart parsers first allowing to override the part. table
written in NAND. This is done in the board files using this driver.
Use now these parsers.
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
drivers/mtd/nand/sharpsl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c
index 064ca17..9859546 100644
--- a/drivers/mtd/nand/sharpsl.c
+++ b/drivers/mtd/nand/sharpsl.c
@@ -183,7 +183,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
/* Register the partitions */
mtd->name = "sharpsl-nand";
- err = mtd_device_parse_register(mtd, NULL, NULL,
+ err = mtd_device_parse_register(mtd, data->part_parsers, NULL,
data->partitions, data->nr_partitions);
if (err)
goto err_add;
--
2.7.4
next prev parent reply other threads:[~2017-08-14 20:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-14 20:48 [PATCH v5 0/9] mtd: sharpslpart partition parser Andrea Adami
2017-08-14 20:48 ` [PATCH v5 1/9] mtd: sharpslpart: Add " Andrea Adami
2017-08-17 8:10 ` Boris Brezillon
2017-08-14 20:48 ` [PATCH v5 2/9] mtd: nand: sharpsl: Add partition parsers platform data Andrea Adami
2017-08-14 20:48 ` [PATCH v5 3/9] mfd: tmio: " Andrea Adami
2017-08-15 6:58 ` Lee Jones
2017-08-19 7:26 ` Boris Brezillon
2017-08-19 9:21 ` Boris Brezillon
2017-08-21 7:27 ` Lee Jones
2017-08-19 8:23 ` Wolfram Sang
2017-08-14 20:48 ` Andrea Adami [this message]
2017-08-14 20:48 ` [PATCH v5 5/9] mtd: nand: tmio: Register partitions using the parsers Andrea Adami
2017-08-19 8:22 ` Wolfram Sang
2017-08-14 20:48 ` [PATCH v5 6/9] ARM: pxa/corgi: Remove hardcoded partitioning, use sharpslpart parser Andrea Adami
2017-08-14 20:48 ` [PATCH v5 7/9] ARM: pxa/tosa: " Andrea Adami
2017-08-14 20:48 ` [PATCH v5 8/9] ARM: pxa/spitz: " Andrea Adami
2017-08-14 20:48 ` [PATCH v5 9/9] ARM: pxa/poodle: " Andrea Adami
2017-08-21 20:13 ` [PATCH v5 0/9] mtd: sharpslpart partition parser Boris Brezillon
2017-08-23 19:33 ` Robert Jarzmik
2017-08-24 9:33 ` Andrea Adami
2017-08-24 9:46 ` Boris Brezillon
2017-08-29 9:18 ` Robert Jarzmik
2017-10-08 9:53 ` Robert Jarzmik
2017-10-08 10:09 ` Boris Brezillon
2017-10-08 10:34 ` Boris Brezillon
2017-11-08 7:54 ` Boris Brezillon
2017-11-09 7:27 ` Robert Jarzmik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502743720-28672-5-git-send-email-andrea.adami@gmail.com \
--to=andrea.adami@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).