aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/files
diff options
context:
space:
mode:
authorMatteo Croce <matteo@openwrt.org>2007-09-20 19:46:58 +0000
committerMatteo Croce <matteo@openwrt.org>2007-09-20 19:46:58 +0000
commit3b2683ae1bc80ea3684c10710996fab23c2f2a60 (patch)
tree7bf6795e1bed5623654d8c0fab85d0dfbf1d64ce /target/linux/ar7/files
parent49ce139bb6781ec9030a29ae10d7e81417cd5b01 (diff)
downloadmaster-187ad058-3b2683ae1bc80ea3684c10710996fab23c2f2a60.tar.gz
master-187ad058-3b2683ae1bc80ea3684c10710996fab23c2f2a60.tar.bz2
master-187ad058-3b2683ae1bc80ea3684c10710996fab23c2f2a60.zip
fix silliness in [8886]
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8889 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/files')
-rw-r--r--target/linux/ar7/files/drivers/mtd/ar7part.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/target/linux/ar7/files/drivers/mtd/ar7part.c b/target/linux/ar7/files/drivers/mtd/ar7part.c
index a7b42c9658..3d160d4cdd 100644
--- a/target/linux/ar7/files/drivers/mtd/ar7part.c
+++ b/target/linux/ar7/files/drivers/mtd/ar7part.c
@@ -31,13 +31,8 @@
#define AR7_PARTS 4
#define ROOT_OFFSET 0xe0000
-#ifdef CONFIG_CPU_LITTLE_ENDIAN
-#define LOADER_MAGIC1 0xfeedfa42
-#define LOADER_MAGIC2 0xfeed1281
-#else
-#define LOADER_MAGIC1 0x42faedfe
-#define LOADER_MAGIC2 0x8112edfe
-#endif
+#define LOADER_MAGIC1 le32_to_cpu(0xfeedfa42)
+#define LOADER_MAGIC2 le32_to_cpu(0xfeed1281)
struct ar7_bin_rec {
unsigned int checksum;