diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-29 16:02:31 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-29 16:02:31 +0000 |
commit | 4a618c3a136008ff90590bb90e83ccac59dec57e (patch) | |
tree | cb91bb95a326cda5f7ce9a4d3e3051176813584e /target/linux/ar71xx/patches-3.7/412-mtd-m25p80-zero-partition-parser-data.patch | |
parent | ab7d6eb3aab7cde972f756550d0e0afa5b59571c (diff) |
ar71xx: add support for 3.7
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34920 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/patches-3.7/412-mtd-m25p80-zero-partition-parser-data.patch')
-rw-r--r-- | target/linux/ar71xx/patches-3.7/412-mtd-m25p80-zero-partition-parser-data.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-3.7/412-mtd-m25p80-zero-partition-parser-data.patch b/target/linux/ar71xx/patches-3.7/412-mtd-m25p80-zero-partition-parser-data.patch new file mode 100644 index 0000000000..a3c7ebc997 --- /dev/null +++ b/target/linux/ar71xx/patches-3.7/412-mtd-m25p80-zero-partition-parser-data.patch @@ -0,0 +1,10 @@ +--- a/drivers/mtd/devices/m25p80.c ++++ b/drivers/mtd/devices/m25p80.c +@@ -963,6 +963,7 @@ static int __devinit m25p_probe(struct s + if (info->flags & M25P_NO_ERASE) + flash->mtd.flags |= MTD_NO_ERASE; + ++ memset(&ppdata, '\0', sizeof(ppdata)); + ppdata.of_node = spi->dev.of_node; + flash->mtd.dev.parent = &spi->dev; + flash->page_size = info->page_size; |