Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1628823
| From | Andrea Adami <andrea.adami@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/3] mtd: nand: sharpsl.c: prefer sharpslpart MTD partition parser |
| Date | 2017-04-22 13:30 +0200 |
| Message-ID | <tz1oK-2dL-15@gated-at.bofh.it> (permalink) |
| References | <tz1oK-2dL-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This is the specific parser for Sharp SL Series (Zaurus).
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
drivers/mtd/nand/sharpsl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c
index 064ca17..2d1ba0e 100644
--- a/drivers/mtd/nand/sharpsl.c
+++ b/drivers/mtd/nand/sharpsl.c
@@ -108,6 +108,8 @@ static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat,
/*
* Main initialization routine
*/
+static const char * const probes[] = { "sharpslpart", NULL };
+
static int sharpsl_nand_probe(struct platform_device *pdev)
{
struct nand_chip *this;
@@ -183,7 +185,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, probes, NULL,
data->partitions, data->nr_partitions);
if (err)
goto err_add;
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll 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