aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-4.1
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-24 18:59:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-24 18:59:28 +0000
commitbb1c915f1e2006ea62f7c9136b18e2491c4303e2 (patch)
tree59846f1613df179154ecb266961e3811b373ccba /target/linux/lantiq/patches-4.1
parent18691109df5a590e9914ae73740f145beec847ce (diff)
downloadupstream-bb1c915f1e2006ea62f7c9136b18e2491c4303e2.tar.gz
upstream-bb1c915f1e2006ea62f7c9136b18e2491c4303e2.tar.bz2
upstream-bb1c915f1e2006ea62f7c9136b18e2491c4303e2.zip
kernel: update m25p80 in 4.1 to the latest version from 4.4-rc1
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47624
Diffstat (limited to 'target/linux/lantiq/patches-4.1')
-rw-r--r--target/linux/lantiq/patches-4.1/0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch6
1 files changed, 3 insertions, 3 deletions
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 <blogic@openwrt.org>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
-@@ -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 <blogic@openwrt.org>
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;