1 --- a/drivers/net/wireless/rt2x00/rt2x00eeprom.c
2 +++ b/drivers/net/wireless/rt2x00/rt2x00eeprom.c
5 #include <linux/kernel.h>
6 #include <linux/module.h>
10 #include "rt2x00lib.h"
11 @@ -34,11 +35,21 @@ static const char *
12 rt2x00lib_get_eeprom_file_name(struct rt2x00_dev *rt2x00dev)
14 struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
16 + struct device_node *np;
20 if (pdata && pdata->eeprom_file_name)
21 return pdata->eeprom_file_name;
25 + np = rt2x00dev->dev->of_node;
26 + if (np && of_property_read_string(np, "ralink,eeprom", &eep) == 0)
33 static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)