mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 21:08:26 +02:00
generic: allow to build myloader mtd parser for 3.2+
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29858 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
608335c636
commit
7a77552c35
@ -14,6 +14,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/version.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/vmalloc.h>
|
#include <linux/vmalloc.h>
|
||||||
@ -30,9 +32,15 @@ struct part_data {
|
|||||||
char names[MYLO_MAX_PARTITIONS][PART_NAME_LEN];
|
char names[MYLO_MAX_PARTITIONS][PART_NAME_LEN];
|
||||||
};
|
};
|
||||||
|
|
||||||
int myloader_parse_partitions(struct mtd_info *master,
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
|
||||||
struct mtd_partition **pparts,
|
static int myloader_parse_partitions(struct mtd_info *master,
|
||||||
unsigned long origin)
|
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 part_data *buf;
|
||||||
struct mylo_partition_table *tab;
|
struct mylo_partition_table *tab;
|
||||||
|
Loading…
Reference in New Issue
Block a user