diff options
author | Matteo Croce <rootkit85@yahoo.it> | 2007-09-20 19:46:58 +0000 |
---|---|---|
committer | Matteo Croce <rootkit85@yahoo.it> | 2007-09-20 19:46:58 +0000 |
commit | 951550023b1867ee16eb2a23cb8c35e98d9fdbb0 (patch) | |
tree | 6a9d29faf6757ebdc07fd08b6c4317ece7826acc /target/linux/ar7/files/drivers | |
parent | e2148dbae17cce50e6d4ec07f52acd65f2e02089 (diff) | |
download | mtk-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')
-rw-r--r-- | target/linux/ar7/files/drivers/mtd/ar7part.c | 9 |
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; |