kernel: m25p80: allow fallback from spi_flash_read to regular SPI transfer
[openwrt/staging/mkresin.git] / target / linux / ar71xx / patches-4.9 / 407-mtd-m25p80-allow-to-pass-probe-types-via-platform-data.patch
index 4fa957e70b9e374c7581d86d422d433c5e2a3d5e..418db2a2bfd37e6422f60520e53e47ba98f29e01 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/mtd/devices/m25p80.c
 +++ b/drivers/mtd/devices/m25p80.c
-@@ -192,6 +192,7 @@ static ssize_t m25p80_read(struct spi_no
+@@ -194,6 +194,7 @@ static ssize_t m25p80_read(struct spi_no
   */
  static int m25p_probe(struct spi_device *spi)
  {
@@ -8,7 +8,7 @@
        struct flash_platform_data      *data;
        struct m25p *flash;
        struct spi_nor *nor;
-@@ -244,8 +245,11 @@ static int m25p_probe(struct spi_device
+@@ -246,8 +247,11 @@ static int m25p_probe(struct spi_device
        if (ret)
                return ret;