From 2a584868c7a4965b756df01a12547d39f55daf8e Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 3 Jul 2011 15:02:00 +0000 Subject: [PATCH] ramips: specify eeprom file name on RT305X SVN-Revision: 27392 --- target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 #include #include +#include #include @@ -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); } -- 2.30.2