kernel: Add missing includes mtdsplit_*.c
[openwrt/staging/blogic.git] / target / linux / generic / files / drivers / mtd / mtdsplit / mtdsplit_lzma.c
index b7f044a6dc8246102ff6ae7f22f12cf645df1dea..c58f7ae4bf066bd08f7c1e972875e7ac6c63e7e4 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/slab.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
+#include <linux/of.h>
 
 #include <asm/unaligned.h>
 
@@ -79,9 +80,16 @@ static int mtdsplit_parse_lzma(struct mtd_info *master,
        return LZMA_NR_PARTS;
 }
 
+static const struct of_device_id mtdsplit_lzma_of_match_table[] = {
+       { .compatible = "lzma" },
+       {},
+};
+MODULE_DEVICE_TABLE(of, mtdsplit_lzma_of_match_table);
+
 static struct mtd_part_parser mtdsplit_lzma_parser = {
        .owner = THIS_MODULE,
        .name = "lzma-fw",
+       .of_match_table = mtdsplit_lzma_of_match_table,
        .parse_fn = mtdsplit_parse_lzma,
        .type = MTD_PARSER_TYPE_FIRMWARE,
 };