aboutsummaryrefslogtreecommitdiffstats
path: root/include/package-dumpinfo.mk
Commit message (Expand)AuthorAgeFilesLines
* add support for hidden packages that get selected/built but do not show up in...Felix Fietkau2011-07-021-0/+1
* add a new package metadata variable MDEPENDS for specifying local menuconfig ...Felix Fietkau2011-04-051-0/+1
* Add maintainer information to menuconfig description dialogMichael Büsch2010-09-301-1/+2
* build system: introduce a new feature called build variants.Felix Fietkau2009-11-101-1/+2
* add experimental support for a new menuconfig submenu "Package features".Felix Fietkau2009-10-171-2/+28
* move host build in packages into a separate namespace: package/<name>/host/<t...Felix Fietkau2009-03-171-2/+4
* speed up metadata scanning a lot by avoiding unnecessary shell commands and m...Felix Fietkau2009-03-031-31/+42
* added source distribution to package dump, used by our SDK (include source di...Ralph Hempel2009-03-011-0/+1
* add support for build-only packages which do not appear in menuconfigFelix Fietkau2009-01-131-0/+1
* add a packaging method that installs files into a subdirectory of bin/ instea...Felix Fietkau2007-09-291-0/+1
* dynamically enable/disable kernel config options for kmod packages based on b...Felix Fietkau2007-07-181-0/+1
* revert part of [6573] to keep the speedup of metadata scanningFelix Fietkau2007-03-161-20/+20
* formatting and trivial cleanupMike Baker2007-03-161-27/+28
* Add an 'Image Configuration' menu to menuconfigFelix Fietkau2007-03-161-1/+6
* split package.mk and clean up build system code (based on patch by mbm), make...Felix Fietkau2007-03-151-0/+32
color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00eeprom.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00eeprom.c
@@ -26,6 +26,7 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/of.h>
 
 #include "rt2x00.h"
 #include "rt2x00lib.h"
@@ -34,11 +35,21 @@ static const char *
 rt2x00lib_get_eeprom_file_name(struct rt2x00_dev *rt2x00dev)
 {
 	struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
+#ifdef CONFIG_OF
+	struct device_node *np;
+	const char *eep;
+#endif
 
 	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;
 }
 
 static int rt2x00lib_request_eeprom_file(struct rt2x00_dev *rt2x00dev)