mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
eeprom: wrap mt76_check_eeprom in #ifdef CONFIG_OF for now
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -41,6 +41,7 @@ mt76_eeprom_get_macaddr(struct mt76_dev *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static int mt76_check_eeprom(struct mt76_dev *dev, const char *type)
|
||||
{
|
||||
u16 val = get_unaligned_le16(dev->eeprom.data);
|
||||
@@ -53,6 +54,7 @@ static int mt76_check_eeprom(struct mt76_dev *dev, const char *type)
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static int mt76_get_of_eeprom(struct mt76_dev *dev, int len)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user