mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 05:04:40 +02:00
ramips: rt3883: make rt3883_nand_data visible
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30655 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5b5e6922c6
commit
342ac43e68
@ -363,8 +363,7 @@ static struct resource rt3883_nand_resources[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ramips_nand_platform_data rt3883_nand_data;
|
struct ramips_nand_platform_data rt3883_nand_data;
|
||||||
|
|
||||||
static struct platform_device rt3883_nand_device = {
|
static struct platform_device rt3883_nand_device = {
|
||||||
.name = RAMIPS_NAND_DRIVER_NAME,
|
.name = RAMIPS_NAND_DRIVER_NAME,
|
||||||
.id = -1,
|
.id = -1,
|
||||||
@ -375,9 +374,7 @@ static struct platform_device rt3883_nand_device = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init rt3883_register_nand(struct mtd_partition *parts, int nr_parts)
|
void __init rt3883_register_nand(void)
|
||||||
{
|
{
|
||||||
rt3883_nand_data.parts = parts;
|
|
||||||
rt3883_nand_data.nr_parts = nr_parts;
|
|
||||||
platform_device_register(&rt3883_nand_device);
|
platform_device_register(&rt3883_nand_device);
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@ extern struct physmap_flash_data rt3883_flash0_data;
|
|||||||
extern struct physmap_flash_data rt3883_flash1_data;
|
extern struct physmap_flash_data rt3883_flash1_data;
|
||||||
void rt3883_register_pflash(unsigned int id);
|
void rt3883_register_pflash(unsigned int id);
|
||||||
|
|
||||||
struct mtd_partition;
|
extern struct ramips_nand_platform_data rt3883_nand_data;
|
||||||
void rt3883_register_nand(struct mtd_partition *parts, int nr_parts);
|
void rt3883_register_nand(void);
|
||||||
|
|
||||||
extern struct ramips_eth_platform_data rt3883_eth_data;
|
extern struct ramips_eth_platform_data rt3883_eth_data;
|
||||||
void rt3883_register_ethernet(void);
|
void rt3883_register_ethernet(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user