--- zzzz-none-000/linux-2.6.32.61/include/linux/mtd/partitions.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/include/linux/mtd/partitions.h 2014-06-27 12:41:25.000000000 +0000 @@ -40,6 +40,7 @@ uint64_t offset; /* offset within the master MTD space */ uint32_t mask_flags; /* master MTD flags to mask out for this partition */ struct nand_ecclayout *ecclayout; /* out of band layout for this partition (NAND only)*/ + int (*refresh_partition)(struct mtd_info *); }; #define MTDPART_OFS_NXTBLK (-2) @@ -51,6 +52,7 @@ int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); int del_mtd_partitions(struct mtd_info *); +int refresh_mtd_partitions(struct mtd_info *); /* * Functions dealing with the various ways of partitioning the space @@ -89,4 +91,11 @@ static inline int mtd_has_cmdlinepart(void) { return 0; } #endif +// AVM/TKL: needed for setting up panic mode +#ifdef CONFIG_MTD_PARTITIONS +extern struct mtd_info *get_mtd_part_master(struct mtd_info *mtd); +#else +#define get_mtd_part_master(mtd) (NULL) +#endif + #endif