X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5b5e6922c6118357b2305be4c718539c5c5c3d2c..342ac43e68713154f18d497564c7df2de8942d58:/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c 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 c83d5b628..8d394bb62 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); }