diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-12-14 16:41:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-12-14 16:41:33 +0000 |
commit | bff468813f78f81e36ebb2a3f4354de7365e640f (patch) | |
tree | e0144a8d723cac2fd84505ec140dd0011541430a /target/linux/magicbox-2.6/patches/002-flash_map.patch | |
parent | 7ca328b65927e12b4bb65a6d752f43b674498908 (diff) | |
download | upstream-bff468813f78f81e36ebb2a3f4354de7365e640f.tar.gz upstream-bff468813f78f81e36ebb2a3f4354de7365e640f.tar.bz2 upstream-bff468813f78f81e36ebb2a3f4354de7365e640f.zip |
Upgrade to Linux 2.6.19
- Includes large parts of the patch from #1021 by dpalffy
- Includes RB532 NAND driver changes by n0-1
SVN-Revision: 5789
Diffstat (limited to 'target/linux/magicbox-2.6/patches/002-flash_map.patch')
-rw-r--r-- | target/linux/magicbox-2.6/patches/002-flash_map.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/magicbox-2.6/patches/002-flash_map.patch b/target/linux/magicbox-2.6/patches/002-flash_map.patch index e5f803a144..5d29a047d5 100644 --- a/target/linux/magicbox-2.6/patches/002-flash_map.patch +++ b/target/linux/magicbox-2.6/patches/002-flash_map.patch @@ -43,7 +43,7 @@ diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magic +#include <linux/mtd/mtd.h> +#include <linux/mtd/map.h> +#include <linux/mtd/partitions.h> -+#include <linux/config.h> ++#include <linux/autoconf.h> +#include <asm/io.h> + +static struct mtd_info *flash; @@ -91,7 +91,7 @@ diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magic + flash = do_map_probe("cfi_probe", &magic_map); + if (flash) { + flash->owner = THIS_MODULE; -+ if (MTD_READ(flash, 12, sizeof(u32), &len, (char *) &size) || ++ if (flash->read(flash, 12, sizeof(u32), &len, (char *) &size) || + len != 4) + return -ENXIO; + size += 0x40; /* header size of the uImage */ |