From: Andrea Adami <andrea.adami@gmail.com>
To: linux-mtd@lists.infradead.org
Cc: David Woodhouse <dwmw2@infradead.org>,
Brian Norris <computersforpeace@gmail.com>,
Boris Brezillon <boris.brezillon@free-electrons.com>,
Marek Vasut <marek.vasut@gmail.com>,
Richard Weinberger <richard@nod.at>,
Cyrille Pitchen <cyrille.pitchen@atmel.com>,
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
Robert Jarzmik <robert.jarzmik@free.fr>,
Linus Walleij <linus.walleij@linaro.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] mtd: nand: tmio_nand.c: prefer sharpslpart MTD partition parser
Date: Sat, 15 Apr 2017 22:11:18 +0200 [thread overview]
Message-ID: <1492287078-22369-4-git-send-email-andrea.adami@gmail.com> (raw)
In-Reply-To: <1492287078-22369-1-git-send-email-andrea.adami@gmail.com>
This is the specific parser for Sharp SL Series (Zaurus)
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
drivers/mtd/nand/tmio_nand.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c
index fc5e773..f3612ac 100644
--- a/drivers/mtd/nand/tmio_nand.c
+++ b/drivers/mtd/nand/tmio_nand.c
@@ -357,6 +357,8 @@ static void tmio_hw_stop(struct platform_device *dev, struct tmio_nand *tmio)
cell->disable(dev);
}
+static const char * const probes[] = { "sharpslpart", NULL };
+
static int tmio_probe(struct platform_device *dev)
{
struct tmio_nand_data *data = dev_get_platdata(&dev->dev);
@@ -440,7 +442,7 @@ static int tmio_probe(struct platform_device *dev)
goto err_irq;
/* Register the partitions */
- retval = mtd_device_parse_register(mtd, NULL, NULL,
+ retval = mtd_device_parse_register(mtd, probes, NULL,
data ? data->partition : NULL,
data ? data->num_partitions : 0);
if (!retval)
--
2.7.4
prev parent reply other threads:[~2017-04-15 20:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-15 20:11 [PATCH 0/3] mtd: sharpslpart partition parser Andrea Adami
2017-04-15 20:11 ` [PATCH 1/3] mtd: sharpsl: add sharpslpart MTD " Andrea Adami
2017-04-16 16:07 ` Marek Vasut
2017-04-17 14:44 ` Boris Brezillon
2017-04-18 9:08 ` Andrea Adami
[not found] ` <CAAQYJAsOJy=SCpBxvrQvfPt6LJ=FjAxDw2gr=5s-vT+8xM-DPQ@mail.gmail.com>
2017-04-18 9:35 ` Boris Brezillon
2017-04-18 11:50 ` Andrea Adami
2017-04-18 12:32 ` Boris Brezillon
2017-06-09 2:32 ` Brian Norris
2017-06-09 7:16 ` Boris Brezillon
2017-06-09 20:58 ` Brian Norris
2017-04-18 15:26 ` Dmitry Eremin-Solenikov
2017-04-18 7:57 ` Andrea Adami
2017-04-15 20:11 ` [PATCH 2/3] mtd: nand: sharpsl.c: prefer " Andrea Adami
2017-04-15 20:11 ` Andrea Adami [this message]
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=1492287078-22369-4-git-send-email-andrea.adami@gmail.com \
--to=andrea.adami@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=cyrille.pitchen@atmel.com \
--cc=dbaryshkov@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=richard@nod.at \
--cc=robert.jarzmik@free.fr \
/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).