aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-07-03 15:02:00 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-07-03 15:02:00 +0000
commit3334d0604e9c162d5f0db7ca7270b8a6d75f6528 (patch)
tree3666a25daab61b6991753dedea0812989ad0feb5 /target/linux
parentf53cc4c4390dbacee6e8b607d39ce89617a5ad94 (diff)
downloadupstream-3334d0604e9c162d5f0db7ca7270b8a6d75f6528.tar.gz
upstream-3334d0604e9c162d5f0db7ca7270b8a6d75f6528.tar.bz2
upstream-3334d0604e9c162d5f0db7ca7270b8a6d75f6528.zip
ramips: specify eeprom file name on RT305X
SVN-Revision: 27392
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
index 7d41b079ac..ce6e4d8c71 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
@@ -14,6 +14,7 @@
#include <linux/clk.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/physmap.h>
+#include <linux/rt2x00_platform.h>
#include <asm/addrspace.h>
@@ -176,17 +177,19 @@ static struct resource rt305x_wifi_resources[] = {
},
};
+static struct rt2x00_platform_data rt305x_wifi_data;
static struct platform_device rt305x_wifi_device = {
.name = "rt2800_wmac",
.resource = rt305x_wifi_resources,
.num_resources = ARRAY_SIZE(rt305x_wifi_resources),
.dev = {
- .platform_data = NULL,
+ .platform_data = &rt305x_wifi_data,
}
};
void __init rt305x_register_wifi(void)
{
+ rt305x_wifi_data.eeprom_file_name = "RT305X.eeprom";
platform_device_register(&rt305x_wifi_device);
}