don't register GPIO 0 as LED. it drives the chip select line of the SPI flash on...
[openwrt.git] / target / linux / ar7 / files / drivers / mtd / ar7part.c
index a7b42c9..3d160d4 100644 (file)
 #define AR7_PARTS      4
 #define ROOT_OFFSET    0xe0000
 
 #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;
 
 struct ar7_bin_rec {
        unsigned int checksum;
This page took 0.027892 seconds and 4 git commands to generate.