2
0
forked from Ivasoft/openwrt

kernel: drop unneeded LINUX_VERSION_CODE checks

All those parsers are used by 4.14 targets. They don't need that
backward compatibility code.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
Rafał Miłecki
2018-12-13 16:59:21 +01:00
parent 2abb128f2e
commit 816ae87709
5 changed files with 0 additions and 28 deletions

View File

@@ -19,7 +19,6 @@
#include <linux/vmalloc.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/version.h>
#include <linux/byteorder/generic.h>
#include "mtdsplit.h"
@@ -257,19 +256,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,
};