eeprom: add missing ifdef for MTD support

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-12-15 13:00:03 +01:00
parent 892543eb79
commit a39d4b7bf9
+1 -1
View File
@@ -23,7 +23,7 @@
static int
mt76_get_of_eeprom(struct mt76_dev *dev, int len)
{
#ifdef CONFIG_OF
#if defined(CONFIG_OF) && defined(CONFIG_MTD)
struct device_node *np = dev->dev->of_node;
struct mtd_info *mtd;
const __be32 *list;