ramips: rt3883: make rt3883_nand_data visible
authorGabor Juhos <juhosg@openwrt.org>
Sun, 19 Feb 2012 19:40:37 +0000 (19:40 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 19 Feb 2012 19:40:37 +0000 (19:40 +0000)
SVN-Revision: 30655

target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c
target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h

index c83d5b6287665af3e67b90bbb1440eaa5f237525..8d394bb62ee67bacb7cab457470c8bb51ac1a6a1 100644 (file)
@@ -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 = {
        .name           = RAMIPS_NAND_DRIVER_NAME,
        .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);
 }
index 239fc15f98686bbf755db107cbfa7105c22110b7..bbddc7e9c23817030a4237b06ada10b16f871840 100644 (file)
@@ -17,8 +17,8 @@ extern struct physmap_flash_data rt3883_flash0_data;
 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);