#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
#include <linux/of.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/module.h>
struct fis_image_desc { … };
struct fis_list { … };
static int directory = …;
module_param(directory, int, 0);
static inline int redboot_checksum(struct fis_image_desc *img)
{ … }
static void parse_redboot_of(struct mtd_info *master)
{ … }
static int parse_redboot_partitions(struct mtd_info *master,
const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{ … }
static const struct of_device_id mtd_parser_redboot_of_match_table[] = …;
MODULE_DEVICE_TABLE(of, mtd_parser_redboot_of_match_table);
static struct mtd_part_parser redboot_parser = …;
module_mtd_part_parser(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;