Skip to content

Commit

Permalink
mtd: use SQUASHFS_MAGIC from uapi/linux/magic.h
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Perkov <luka@openwrt.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
Luka Perkov authored and Artem Bityutskiy committed Nov 21, 2012
1 parent 22a8578 commit 9ff4073
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/mtd/ar7part.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ff4073

Please sign in to comment.