diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-09-02 16:33:13 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-09-02 16:33:13 +0000 |
commit | 09509229257b64b677be3e6fba045d65758a1ae9 (patch) | |
tree | 7af7fe5fe9c68143c282d3989a8b48efa3856c5b /target/linux/generic/files | |
parent | 0ceeb6a068a60640859f35bf9ff89d0d16b91fb3 (diff) | |
download | mtk-20170518-09509229257b64b677be3e6fba045d65758a1ae9.zip mtk-20170518-09509229257b64b677be3e6fba045d65758a1ae9.tar.gz mtk-20170518-09509229257b64b677be3e6fba045d65758a1ae9.tar.bz2 |
generic: remove linux version checks from myloader.c
The myloader partition parser code uses ifdef wrappers
to make the code usable on kernels below version 3.2.
All targets are using kernel 3.3 at least so the wraper
is not needed. Remove that.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37880
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/myloader.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c index 3345981..72956cd 100644 --- a/target/linux/generic/files/drivers/mtd/myloader.c +++ b/target/linux/generic/files/drivers/mtd/myloader.c @@ -32,15 +32,9 @@ struct part_data { char names[MYLO_MAX_PARTITIONS][PART_NAME_LEN]; }; -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) static int myloader_parse_partitions(struct mtd_info *master, struct mtd_partition **pparts, struct mtd_part_parser_data *data) -#else -static int myloader_parse_partitions(struct mtd_info *master, - struct mtd_partition **pparts, - unsigned long origin) -#endif { struct part_data *buf; struct mylo_partition_table *tab; |