mac80211: rt2x00: fix typo
authorSungbo Eo <mans0n@gorani.run>
Mon, 31 Jan 2022 17:53:59 +0000 (02:53 +0900)
committerSungbo Eo <mans0n@gorani.run>
Sat, 17 Sep 2022 18:09:19 +0000 (03:09 +0900)
Add missing semicolon and refresh patches.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
package/kernel/mac80211/patches/rt2x00/602-rt2x00-introduce-rt2x00eeprom.patch
package/kernel/mac80211/patches/rt2x00/603-rt2x00-of_load_eeprom_filename.patch

index bd33b2efbd9cc34d17ff09be53ba8cb2c9748dd4..21ed9882b009ae157c91ded041ec2647c94d7c54 100644 (file)
 +      if (pdata && pdata->eeprom_file_name)
 +              return pdata->eeprom_file_name;
 +
-+      return NULL
++      return NULL;
 +}
 +
 +static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)
index 9dffef1812d121c6132b77fa5fa3ca7c50d277c8..431e090237286d836830173edd2290239fb0ef73 100644 (file)
@@ -8,7 +8,7 @@
  
  #include "rt2x00.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)
  {
        struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
        if (pdata && pdata->eeprom_file_name)
                return pdata->eeprom_file_name;
  
--      return NULL
 +#ifdef CONFIG_OF
 +      np = rt2x00dev->dev->of_node;
 +      if (np && of_property_read_string(np, "ralink,eeprom", &eep) == 0)
 +          return eep;
 +#endif
 +
-+      return NULL;
+       return NULL;
  }
  
- static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)