Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1628821

[PATCH v2 3/3] mtd: nand: tmio_nand.c: prefer sharpslpart MTD partition parser

From Andrea Adami <andrea.adami@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 3/3] mtd: nand: tmio_nand.c: prefer sharpslpart MTD partition parser
Date 2017-04-22 13:30 +0200
Message-ID <tz1oK-2dL-7@gated-at.bofh.it> (permalink)
References <tz1oK-2dL-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] mtd: sharpslpart partition parser Andrea Adami <andrea.adami@gmail.com> - 2017-04-22 13:30 +0200
  [PATCH v2 3/3] mtd: nand: tmio_nand.c: prefer sharpslpart MTD partition parser Andrea Adami <andrea.adami@gmail.com> - 2017-04-22 13:30 +0200
  [PATCH v2 1/3] mtd: sharpsl: add sharpslpart MTD partition parser Andrea Adami <andrea.adami@gmail.com> - 2017-04-22 13:30 +0200
  [PATCH v2 2/3] mtd: nand: sharpsl.c: prefer sharpslpart MTD partition parser Andrea Adami <andrea.adami@gmail.com> - 2017-04-22 13:30 +0200

csiph-web