projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2148db
)
fix silliness in [8886]
author
Matteo Croce
<rootkit85@yahoo.it>
Thu, 20 Sep 2007 19:46:58 +0000
(19:46 +0000)
committer
Matteo Croce
<rootkit85@yahoo.it>
Thu, 20 Sep 2007 19:46:58 +0000
(19:46 +0000)
SVN-Revision: 8889
target/linux/ar7/files/drivers/mtd/ar7part.c
patch
|
blob
|
history
diff --git
a/target/linux/ar7/files/drivers/mtd/ar7part.c
b/target/linux/ar7/files/drivers/mtd/ar7part.c
index a7b42c9658ecd6cec2b430d3f2139cf8065a4773..3d160d4cddefb05302fa21aa70b01bca4df34669 100644
(file)
--- 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;