From: Gabor Juhos Date: Mon, 2 Sep 2013 16:33:13 +0000 (+0000) Subject: generic: remove linux version checks from myloader.c X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3500be5ad2040396830f6946cb2b93cad30f8665;p=openwrt%2Fsvn-archive%2Farchive.git 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 SVN-Revision: 37880 --- diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c index 33459819da..72956cdc1c 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;