+
static int rt2800lib_read_eeprom_mtd(struct rt2x00_dev *rt2x00dev)
{
- int ret = -EINVAL;
+ struct device_node *np = rt2x00dev->dev->of_node, *mtd_np = NULL;
@@ -65,6 +78,8 @@ static int rt2800lib_read_eeprom_mtd(str
return ret;
}
+#if IS_ENABLED(CONFIG_MTD)
static int rt2800lib_read_eeprom_mtd(struct rt2x00_dev *rt2x00dev)
{
- int ret = -EINVAL;
+ struct device_node *np = rt2x00dev->dev->of_node, *mtd_np = NULL;
@@ -86,6 +87,40 @@ static int rt2800lib_read_eeprom_mtd(str
}
#endif