Supported chips: RT2880, RT3050, RT3052, RT3350, RT3352.
--- a/drivers/net/wireless/rt2x00/rt2x00eeprom.c
+++ b/drivers/net/wireless/rt2x00/rt2x00eeprom.c
-@@ -26,17 +26,72 @@
+@@ -26,11 +26,66 @@
#include <linux/kernel.h>
#include <linux/module.h>
static const char *
rt2x00lib_get_eeprom_file_name(struct rt2x00_dev *rt2x00dev)
{
- struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
- struct device_node *np;
-- char *eep;
-+ const char *eep;
-
- if (pdata && pdata->eeprom_file_name)
- return pdata->eeprom_file_name;
-@@ -53,9 +108,12 @@ rt2x00lib_get_eeprom_file_name(struct rt
- static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)
- {
- const struct firmware *ee;
-- char *ee_name;
-+ const char *ee_name;
+@@ -58,6 +113,9 @@ static int rt2x00lib_request_eeprom_file
+ const char *ee_name;
int retval;
+ if (!rt2800lib_read_eeprom_mtd(rt2x00dev))