mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-15 11:24:42 +00:00
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
This commit is contained in:
parent
0ceeb6a068
commit
0950922925
@ -32,15 +32,9 @@ struct part_data {
|
|||||||
char names[MYLO_MAX_PARTITIONS][PART_NAME_LEN];
|
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,
|
static int myloader_parse_partitions(struct mtd_info *master,
|
||||||
struct mtd_partition **pparts,
|
struct mtd_partition **pparts,
|
||||||
struct mtd_part_parser_data *data)
|
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 part_data *buf;
|
||||||
struct mylo_partition_table *tab;
|
struct mylo_partition_table *tab;
|
||||||
|
Loading…
Reference in New Issue
Block a user