diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-07-03 15:02:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-07-03 15:02:00 +0000 |
commit | e81daf7520bc404ff7054b8db5a4700ecb2ef20b (patch) | |
tree | bf0987cddfe71babc56c5de4d0be382477d085f0 /target/linux/ramips/files/arch/mips/ralink/rt305x | |
parent | ebbad38d27ce1806ee19761e87ac2cdddd36bc2b (diff) | |
download | upstream-e81daf7520bc404ff7054b8db5a4700ecb2ef20b.tar.gz upstream-e81daf7520bc404ff7054b8db5a4700ecb2ef20b.tar.bz2 upstream-e81daf7520bc404ff7054b8db5a4700ecb2ef20b.zip |
ramips: specify eeprom file name on RT305X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27392 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c | 5 |
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); } |