mtd: use SQUASHFS_MAGIC from uapi/linux/magic.h
authorLuka Perkov <luka@openwrt.org>
Sun, 11 Nov 2012 19:32:15 +0000 (20:32 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 21 Nov 2012 15:06:44 +0000 (17:06 +0200)
Signed-off-by: Luka Perkov <luka@openwrt.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ar7part.c

index 945393129952d1a0021d65d53eb7374751c30bda..7c057a05adb67722613c45e3a3612f4f425dc115 100644 (file)
 #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;