mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
mac80211: rt2x00: fix typo
Add missing semicolon and refresh patches. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
parent
4f4d410217
commit
7901118997
@ -193,7 +193,7 @@
|
|||||||
+ if (pdata && pdata->eeprom_file_name)
|
+ if (pdata && pdata->eeprom_file_name)
|
||||||
+ return pdata->eeprom_file_name;
|
+ return pdata->eeprom_file_name;
|
||||||
+
|
+
|
||||||
+ return NULL
|
+ return NULL;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)
|
+static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "rt2x00.h"
|
#include "rt2x00.h"
|
||||||
#include "rt2x00lib.h"
|
#include "rt2x00lib.h"
|
||||||
@@ -34,11 +35,21 @@ static const char *
|
@@ -34,10 +35,20 @@ static const char *
|
||||||
rt2x00lib_get_eeprom_file_name(struct rt2x00_dev *rt2x00dev)
|
rt2x00lib_get_eeprom_file_name(struct rt2x00_dev *rt2x00dev)
|
||||||
{
|
{
|
||||||
struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
|
struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
|
||||||
@ -20,14 +20,12 @@
|
|||||||
if (pdata && pdata->eeprom_file_name)
|
if (pdata && pdata->eeprom_file_name)
|
||||||
return pdata->eeprom_file_name;
|
return pdata->eeprom_file_name;
|
||||||
|
|
||||||
- return NULL
|
|
||||||
+#ifdef CONFIG_OF
|
+#ifdef CONFIG_OF
|
||||||
+ np = rt2x00dev->dev->of_node;
|
+ np = rt2x00dev->dev->of_node;
|
||||||
+ if (np && of_property_read_string(np, "ralink,eeprom", &eep) == 0)
|
+ if (np && of_property_read_string(np, "ralink,eeprom", &eep) == 0)
|
||||||
+ return eep;
|
+ return eep;
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
+ return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user