summaryrefslogtreecommitdiff
path: root/target/linux/ar7/files/drivers/mtd
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2007-09-20 19:46:58 +0000
committerMatteo Croce <rootkit85@yahoo.it>2007-09-20 19:46:58 +0000
commit951550023b1867ee16eb2a23cb8c35e98d9fdbb0 (patch)
tree6a9d29faf6757ebdc07fd08b6c4317ece7826acc /target/linux/ar7/files/drivers/mtd
parente2148dbae17cce50e6d4ec07f52acd65f2e02089 (diff)
downloadmtk-20170518-951550023b1867ee16eb2a23cb8c35e98d9fdbb0.zip
mtk-20170518-951550023b1867ee16eb2a23cb8c35e98d9fdbb0.tar.gz
mtk-20170518-951550023b1867ee16eb2a23cb8c35e98d9fdbb0.tar.bz2
fix silliness in [8886]
SVN-Revision: 8889
Diffstat (limited to 'target/linux/ar7/files/drivers/mtd')
-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 a7b42c9..3d160d4 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;