|
|
|
@ -198,12 +198,12 @@ |
|
|
|
|
- memcpy_fromio(rt2x00dev->eeprom, base_addr, EEPROM_SIZE);
|
|
|
|
|
-
|
|
|
|
|
- iounmap(base_addr);
|
|
|
|
|
+ memcpy(rt2x00dev->eeprom, rt2x00dev->eeprom_file->data, EEPROM_SIZE);
|
|
|
|
|
}
|
|
|
|
|
-}
|
|
|
|
|
-#else
|
|
|
|
|
-static inline void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev)
|
|
|
|
|
-{
|
|
|
|
|
-}
|
|
|
|
|
+ memcpy(rt2x00dev->eeprom, rt2x00dev->eeprom_file->data, EEPROM_SIZE);
|
|
|
|
|
}
|
|
|
|
|
-#endif /* CONFIG_RALINK_RT288X || CONFIG_RALINK_RT305X */
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_PCI
|
|
|
|
|