From 4c24144f1f3a5a1075ca113d799750878b91f3fa Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 12 Feb 2012 12:52:12 +0000 Subject: ramips: rt288x: remove per-board physmap_flash_data instances git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30474 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../ramips/files/arch/mips/ralink/rt288x/mach-wzr-agl300nh.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'target/linux/ramips/files/arch/mips/ralink/rt288x/mach-wzr-agl300nh.c') diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-wzr-agl300nh.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-wzr-agl300nh.c index 3e59fbe13..6bd7a4542 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-wzr-agl300nh.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-wzr-agl300nh.c @@ -61,16 +61,14 @@ static struct mtd_partition wzr_agl300nh_partitions[] = { } }; -static struct physmap_flash_data wzr_agl300nh_flash_data = { - .nr_parts = ARRAY_SIZE(wzr_agl300nh_partitions), - .parts = wzr_agl300nh_partitions, -}; - static void __init wzr_agl300nh_init(void) { rt288x_gpio_init(RT2880_GPIO_MODE_UART0); - rt288x_register_flash(0, &wzr_agl300nh_flash_data); + rt288x_flash0_data.nr_parts = ARRAY_SIZE(wzr_agl300nh_partitions); + rt288x_flash0_data.parts = wzr_agl300nh_partitions; + rt288x_register_flash(0); + rt288x_register_wifi(); rt288x_register_wdt(); } -- cgit v1.2.3