summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ar7part.c
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2012-11-11 20:32:15 +0100
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-21 17:06:44 +0200
commit9ff407385441744ea4618f109535014c4b651f8a (patch)
tree1ede167804adf72fb6f151e1ba0bc26a9d25368f /drivers/mtd/ar7part.c
parent22a8578fca5a47e643bb4f70c232d0ec84db9e4e (diff)
downloadblackbird-op-linux-9ff407385441744ea4618f109535014c4b651f8a.tar.gz
blackbird-op-linux-9ff407385441744ea4618f109535014c4b651f8a.zip
mtd: use SQUASHFS_MAGIC from uapi/linux/magic.h
Signed-off-by: Luka Perkov <luka@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ar7part.c')
-rw-r--r--drivers/mtd/ar7part.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/mtd/ar7part.c b/drivers/mtd/ar7part.c
index 945393129952..7c057a05adb6 100644
--- a/drivers/mtd/ar7part.c
+++ b/drivers/mtd/ar7part.c
@@ -26,19 +26,16 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/bootmem.h>
-#include <linux/magic.h>
#include <linux/module.h>
+#include <uapi/linux/magic.h>
+
#define AR7_PARTS 4
#define ROOT_OFFSET 0xe0000
#define LOADER_MAGIC1 le32_to_cpu(0xfeedfa42)
#define LOADER_MAGIC2 le32_to_cpu(0xfeed1281)
-#ifndef SQUASHFS_MAGIC
-#define SQUASHFS_MAGIC 0x73717368
-#endif
-
struct ar7_bin_rec {
unsigned int checksum;
unsigned int length;
OpenPOWER on IntegriCloud