]> git.enpas.org Git - openwrt.git/commitdiff
generic: remove linux version checks from myloader.c
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Sep 2013 16:33:13 +0000 (16:33 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Sep 2013 16:33:13 +0000 (16:33 +0000)
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37880 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic/files/drivers/mtd/myloader.c

index 33459819daa7c360043672785df6556014d50376..72956cdc1c9fa5ffafdeca73e941ffb20c7656e8 100644 (file)
@@ -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;