aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0002-mtd-nand-sharpsl.c-prefer-sharpslpart-MTD-partition-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0002-mtd-nand-sharpsl.c-prefer-sharpslpart-MTD-partition-.patch')
-rw-r--r--recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0002-mtd-nand-sharpsl.c-prefer-sharpslpart-MTD-partition-.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0002-mtd-nand-sharpsl.c-prefer-sharpslpart-MTD-partition-.patch b/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0002-mtd-nand-sharpsl.c-prefer-sharpslpart-MTD-partition-.patch
new file mode 100644
index 0000000..7f47c82
--- /dev/null
+++ b/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0002-mtd-nand-sharpsl.c-prefer-sharpslpart-MTD-partition-.patch
@@ -0,0 +1,38 @@
+From 888060fb9aa78dee4b103dd241f3058a2b69f93e Mon Sep 17 00:00:00 2001
+From: Andrea Adami <andrea.adami@gmail.com>
+Date: Sat, 13 May 2017 00:16:29 +0200
+Subject: [PATCH 2/3] mtd: nand: sharpsl.c: prefer sharpslpart MTD partition
+ parser
+
+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 082b600..9a515c6 100644
+--- a/drivers/mtd/nand/sharpsl.c
++++ b/drivers/mtd/nand/sharpsl.c
+@@ -106,6 +106,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;
+@@ -180,7 +182,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
+ /* Register the partitions */
+ sharpsl->mtd.name = "sharpsl-nand";
+
+- err = mtd_device_parse_register(&sharpsl->mtd, NULL, NULL,
++ err = mtd_device_parse_register(&sharpsl->mtd, probes, NULL,
+ data->partitions, data->nr_partitions);
+ if (err)
+ goto err_add;
+--
+2.7.4
+