diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-02-19 19:40:37 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-02-19 19:40:37 +0000 |
commit | dd001a4b0fa96c64bc1514b08ceaaff1355e0688 (patch) | |
tree | 3a907f60c6e01c69c93e3782c99e100e17580232 /target/linux/ramips | |
parent | 62f213eab95ae4015948f7f3f9da122edf0e8d8f (diff) | |
download | upstream-dd001a4b0fa96c64bc1514b08ceaaff1355e0688.tar.gz upstream-dd001a4b0fa96c64bc1514b08ceaaff1355e0688.tar.bz2 upstream-dd001a4b0fa96c64bc1514b08ceaaff1355e0688.zip |
ramips: rt3883: make rt3883_nand_data visible
SVN-Revision: 30655
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c | 7 | ||||
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c b/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c index c83d5b6287..8d394bb62e 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c @@ -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); } diff --git a/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h b/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h index 239fc15f98..bbddc7e9c2 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h +++ b/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h @@ -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); |