-static struct ramips_nand_platform_data rt3883_nand_data;
-
+struct ramips_nand_platform_data rt3883_nand_data;
static struct platform_device rt3883_nand_device = {
.name = RAMIPS_NAND_DRIVER_NAME,
.id = -1,
static struct platform_device rt3883_nand_device = {
.name = RAMIPS_NAND_DRIVER_NAME,
.id = -1,
-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);
}
extern struct physmap_flash_data rt3883_flash1_data;
void rt3883_register_pflash(unsigned int id);
extern struct physmap_flash_data rt3883_flash1_data;
void rt3883_register_pflash(unsigned int id);
-struct mtd_partition;
-void rt3883_register_nand(struct mtd_partition *parts, int nr_parts);
+extern struct ramips_nand_platform_data rt3883_nand_data;
+void rt3883_register_nand(void);
extern struct ramips_eth_platform_data rt3883_eth_data;
void rt3883_register_ethernet(void);
extern struct ramips_eth_platform_data rt3883_eth_data;
void rt3883_register_ethernet(void);