[rt2x00-users] [PATCH 1/3] rt2x00: allow overriding eeprom through platform_data

Helmut Schaa helmut.schaa at googlemail.com
Thu Nov 29 23:13:18 AEDT 2012


On Thu, Nov 29, 2012 at 1:05 PM, Daniel Golle <dgolle at allnet.de> wrote:
> -#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
> -static void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev)
> -{
> -       void __iomem *base_addr = ioremap(0x1F040000, EEPROM_SIZE);
> -
> -       memcpy_fromio(rt2x00dev->eeprom, base_addr, EEPROM_SIZE);
> -
> -       iounmap(base_addr);
> -}
> -#else
> -static inline void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev)

I'm unsure if there are any other users for this then OpenWrt. Hence, should we
leave this in for users that don't yet supply an eeprom file via platform data?

Helmut




More information about the users mailing list