ramips: rt3883: make rt3883_wlan_data visible
authorGabor Juhos <juhosg@openwrt.org>
Sat, 18 Feb 2012 17:36:16 +0000 (17:36 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 18 Feb 2012 17:36:16 +0000 (17:36 +0000)
SVN-Revision: 30631

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

index 943f8e1e15d607ff550849a1baf129bb0a79efb7..c83d5b6287665af3e67b90bbb1440eaa5f237525 100644 (file)
@@ -310,10 +310,7 @@ static struct resource rt3883_wlan_resources[] = {
        },
 };
 
-static struct rt2x00_platform_data rt3883_wlan_data = {
-       .eeprom_file_name       = "RT3883.eeprom",
-};
-
+struct rt2x00_platform_data rt3883_wlan_data;
 static struct platform_device rt3883_wlan_device = {
        .name           = "rt2800_wmac",
        .resource       = rt3883_wlan_resources,
@@ -325,6 +322,7 @@ static struct platform_device rt3883_wlan_device = {
 
 void __init rt3883_register_wlan(void)
 {
+       rt3883_wlan_data.eeprom_file_name = "RT3883.eeprom",
        platform_device_register(&rt3883_wlan_device);
 }
 
index 4b460e3555b2a41cb3f243d6912f0c6d4c7ba324..239fc15f98686bbf755db107cbfa7105c22110b7 100644 (file)
@@ -23,6 +23,8 @@ void rt3883_register_nand(struct mtd_partition *parts, int nr_parts);
 extern struct ramips_eth_platform_data rt3883_eth_data;
 void rt3883_register_ethernet(void);
 void rt3883_register_usbhost(void);
+
+extern struct rt2x00_platform_data rt3883_wlan_data;
 void rt3883_register_wlan(void);
 void rt3883_register_wdt(bool enable_reset);