ar71xx: Add QCA955X GPIO mux and function definitions
[openwrt.git] / target / linux / ar71xx / patches-4.1 / 407-mtd-m25p80-allow-to-pass-probe-types-via-platform-data.patch
index bdfa887..6a91320 100644 (file)
@@ -1,11 +1,11 @@
 --- a/drivers/mtd/devices/m25p80.c
 +++ b/drivers/mtd/devices/m25p80.c
-@@ -234,7 +234,9 @@ static int m25p_probe(struct spi_device
+@@ -229,7 +229,9 @@ static int m25p_probe(struct spi_device
  
        ppdata.of_node = spi->dev.of_node;
  
--      return mtd_device_parse_register(&flash->mtd, NULL, &ppdata,
-+      return mtd_device_parse_register(&flash->mtd,
+-      return mtd_device_parse_register(&nor->mtd, NULL, &ppdata,
++      return mtd_device_parse_register(&nor->mtd,
 +                      data ? data->part_probes : NULL,
 +                      &ppdata,
                        data ? data->parts : NULL,