aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-18 17:36:16 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-18 17:36:16 +0000
commit5710530c41ace1930799a36785ec9bd6682e87c8 (patch)
tree042c8fcdd76d2f96e411225f3a712908e367b047 /target/linux/ramips/files
parent799e9cbec8fc2c860f181ec493f26dae5de3d233 (diff)
downloadupstream-5710530c41ace1930799a36785ec9bd6682e87c8.tar.gz
upstream-5710530c41ace1930799a36785ec9bd6682e87c8.tar.bz2
upstream-5710530c41ace1930799a36785ec9bd6682e87c8.zip
ramips: rt3883: make rt3883_wlan_data visible
SVN-Revision: 30631
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c6
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h2
2 files changed, 4 insertions, 4 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 943f8e1e15..c83d5b6287 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.c
@@ -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);
}
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 4b460e3555..239fc15f98 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h
+++ b/target/linux/ramips/files/arch/mips/ralink/rt3883/devices.h
@@ -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);