From bb1c915f1e2006ea62f7c9136b18e2491c4303e2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 24 Nov 2015 18:59:28 +0000 Subject: kernel: update m25p80 in 4.1 to the latest version from 4.4-rc1 Signed-off-by: Felix Fietkau SVN-Revision: 47624 --- .../0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/lantiq') diff --git a/target/linux/lantiq/patches-4.1/0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch b/target/linux/lantiq/patches-4.1/0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch index 1f0ffe1bcf..535069c58d 100644 --- a/target/linux/lantiq/patches-4.1/0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch +++ b/target/linux/lantiq/patches-4.1/0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch @@ -22,7 +22,7 @@ Signed-off-by: John Crispin #include #include -@@ -184,6 +185,10 @@ static int m25p_probe(struct spi_device +@@ -182,6 +183,10 @@ static int m25p_probe(struct spi_device enum read_mode mode = SPI_NOR_NORMAL; char *flash_name = NULL; int ret; @@ -33,10 +33,10 @@ Signed-off-by: John Crispin data = dev_get_platdata(&spi->dev); -@@ -215,6 +220,8 @@ static int m25p_probe(struct spi_device +@@ -212,6 +217,8 @@ static int m25p_probe(struct spi_device if (data && data->name) - flash->mtd.name = data->name; + nor->mtd.name = data->name; + else if (of_mtd_name) + flash->mtd.name = of_mtd_name; -- cgit v1.2.3