From: Gabor Juhos Date: Sun, 22 Jan 2012 18:36:49 +0000 (+0000) Subject: generic: allow to build myloader mtd parser for 3.2+ X-Git-Tag: reboot~15104 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9be1b9164404c6e048619a1749b14413749ddca1;p=openwrt%2Fstaging%2Fnoltari.git generic: allow to build myloader mtd parser for 3.2+ SVN-Revision: 29858 --- diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c index 51c037459f..a13752dd98 100644 --- a/target/linux/generic/files/drivers/mtd/myloader.c +++ b/target/linux/generic/files/drivers/mtd/myloader.c @@ -14,6 +14,8 @@ */ #include +#include +#include #include #include #include @@ -30,9 +32,15 @@ struct part_data { char names[MYLO_MAX_PARTITIONS][PART_NAME_LEN]; }; -int myloader_parse_partitions(struct mtd_info *master, - struct mtd_partition **pparts, - unsigned long origin) +#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;