kernel: Add missing includes mtdsplit_*.c
[openwrt/openwrt.git] / target / linux / generic / files / drivers / mtd / mtdsplit / mtdsplit_jimage.c
index 5c6c5b09ef5c7fc8c8a35a6f22271002a4e733a7..1770dd47ce15f30f8ec23092d5334380ec362f6e 100644 (file)
@@ -19,8 +19,8 @@
 #include <linux/vmalloc.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
-#include <linux/version.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
@@ -257,19 +257,15 @@ mtdsplit_jimage_parse_generic(struct mtd_info *master,
                                      jimage_verify_default);
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
 static const struct of_device_id mtdsplit_jimage_of_match_table[] = {
        { .compatible = "amit,jimage" },
        {},
 };
-#endif
 
 static struct mtd_part_parser jimage_generic_parser = {
        .owner = THIS_MODULE,
        .name = "jimage-fw",
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
        .of_match_table = mtdsplit_jimage_of_match_table,
-#endif
        .parse_fn = mtdsplit_jimage_parse_generic,
        .type = MTD_PARSER_TYPE_FIRMWARE,
 };