X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Flantiq%2Ffiles%2Farch%2Fmips%2Flantiq%2Fxway%2Fdev-wifi-rt2x00.c;fp=target%2Flinux%2Flantiq%2Ffiles%2Farch%2Fmips%2Flantiq%2Fxway%2Fdev-wifi-rt2x00.c;h=8e271f06ec5b990d7e12ef476ab9b9fcb2fabc4c;hp=0000000000000000000000000000000000000000;hb=e4b72001f64b62aa5ffefb8c6b6385e6f0656477;hpb=c9e0ccf07c715d71b9b8c845d6e7e033678c5557 diff --git a/target/linux/lantiq/files/arch/mips/lantiq/xway/dev-wifi-rt2x00.c b/target/linux/lantiq/files/arch/mips/lantiq/xway/dev-wifi-rt2x00.c new file mode 100644 index 0000000000..8e271f06ec --- /dev/null +++ b/target/linux/lantiq/files/arch/mips/lantiq/xway/dev-wifi-rt2x00.c @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2011 John Crispin + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +#include +#include +#include +#include + +#include "dev-wifi-rt2x00.h" + +extern int (*ltqpci_plat_dev_init)(struct pci_dev *dev); +struct rt2x00_platform_data rt2x00_pdata; + +static int +rt2x00_pci_plat_dev_init(struct pci_dev *dev) +{ + dev->dev.platform_data = &rt2x00_pdata; + return 0; +} + +void __init +ltq_register_rt2x00(const char *firmware, const u8 *mac) +{ + rt2x00_pdata.eeprom_file_name = kstrdup(firmware, GFP_KERNEL); + rt2x00_pdata.mac_address = mac; + ltqpci_plat_dev_init = rt2x00_pci_plat_dev_init; +}