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:
@@ -14,7 +14,6 @@
|
||||
#include <linux/slab.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/version.h>
|
||||
#include <linux/byteorder/generic.h>
|
||||
|
||||
#include "mtdsplit.h"
|
||||
@@ -153,19 +152,15 @@ static int mtdsplit_parse_tplink(struct mtd_info *master,
|
||||
return TPLINK_NR_PARTS;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
|
||||
static const struct of_device_id mtdsplit_tplink_of_match_table[] = {
|
||||
{ .compatible = "tplink,firmware" },
|
||||
{},
|
||||
};
|
||||
#endif
|
||||
|
||||
static struct mtd_part_parser mtdsplit_tplink_parser = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "tplink-fw",
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
|
||||
.of_match_table = mtdsplit_tplink_of_match_table,
|
||||
#endif
|
||||
.parse_fn = mtdsplit_parse_tplink,
|
||||
.type = MTD_PARSER_TYPE_FIRMWARE,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user