X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fmagicbox-2.6%2Fpatches%2F002-flash_map.patch;fp=target%2Flinux%2Fmagicbox-2.6%2Fpatches%2F002-flash_map.patch;h=5d29a047d5487f8609fb0c8866395a630253d8eb;hb=c92885c466d11dc3b8e2837a8be1fd3b6b7e2e01;hp=e5f803a14438ffc4e90b1805df1a99b739c0b440;hpb=a8131d463830012d225fa1032222c3a38b168778;p=openwrt-10.03%2F.git 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 e5f803a14..5d29a047d 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 +#include +#include -+#include ++#include +#include + +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 */