diff options
author | John Crispin <blogic@openwrt.org> | 2009-10-02 08:09:27 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2009-10-02 08:09:27 +0000 |
commit | 1d74dc98755ec22bf1d5dada5ba66c06b0fcf842 (patch) | |
tree | 60fe3dbf83bf1fb7dc3f87a1b7495bbd90d5ff54 /target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c | |
parent | a9f35cf146079654061cddf8ad854a40b3d95f69 (diff) | |
download | master-187ad058-1d74dc98755ec22bf1d5dada5ba66c06b0fcf842.tar.gz master-187ad058-1d74dc98755ec22bf1d5dada5ba66c06b0fcf842.tar.bz2 master-187ad058-1d74dc98755ec22bf1d5dada5ba66c06b0fcf842.zip |
bump ifxmips to .30
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17817 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c')
-rw-r--r-- | target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c b/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c index a2d30cd0b6..6498d12cb1 100644 --- a/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c +++ b/target/linux/ifxmips/files/drivers/mtd/maps/ifxmips.c @@ -134,8 +134,8 @@ int find_uImage_size(unsigned long start_offset) unsigned long magic; unsigned long temp; ifxmips_copy_from(&ifxmips_map, &magic, start_offset, 4); - if (!(ntohl(magic) == 0x27051956)) { - printk(KERN_INFO "ifxmips_mtd: invalid magic (0x%08X) of kernel at 0x%08lx \n", ntohl(magic), start_offset); + if (le32_to_cpu(magic) != 0x56190527) { + printk(KERN_INFO "ifxmips_mtd: invalid magic (0x%08X) of kernel at 0x%08lx \n", le32_to_cpu(magic), start_offset); return 0; } ifxmips_copy_from(&ifxmips_map, &temp, start_offset + 12, 4); @@ -159,7 +159,7 @@ int detect_squashfs_partition(unsigned long start_offset) { unsigned long temp; ifxmips_copy_from(&ifxmips_map, &temp, start_offset, 4); - return temp == SQUASHFS_MAGIC; + return le32_to_cpu(temp) == SQUASHFS_MAGIC; } static int ifxmips_mtd_probe(struct platform_device *dev) |