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 | 9b82f8e7aa69793ddb22024ddf933a4b434af514 (patch) | |
tree | 62e567af0904d854e1c6f71b02b66e33a0b2f9cb /target/linux/generic | |
parent | 0927dd581ffe0bed9ad5d176f67ff3da44f5ce8f (diff) | |
download | master-187ad058-9b82f8e7aa69793ddb22024ddf933a4b434af514.tar.gz master-187ad058-9b82f8e7aa69793ddb22024ddf933a4b434af514.tar.bz2 master-187ad058-9b82f8e7aa69793ddb22024ddf933a4b434af514.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37880 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-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 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; |