2 * Copyright (C) 2011 John Crispin <blogic@openwrt.org>
3 * Copyright (C) 2011 Andrej Vlašić <andrej.vlasic0@gmail.com>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published
7 * by the Free Software Foundation.
10 #include <linux/init.h>
11 #include <linux/platform_device.h>
12 #include <linux/ath5k_platform.h>
13 #include <linux/pci.h>
15 #include "dev-wifi-ath5k.h"
17 extern int (*ltqpci_plat_dev_init)(struct pci_dev *dev);
18 struct ath5k_platform_data ath5k_pdata;
21 ath5k_pci_plat_dev_init(struct pci_dev *dev)
23 dev->dev.platform_data = &ath5k_pdata;
28 ltq_register_ath5k(u16 *eeprom_data, u8 *macaddr)
30 ath5k_pdata.eeprom_data = eeprom_data;
31 ath5k_pdata.macaddr = macaddr;
32 ltqpci_plat_dev_init = ath5k_pci_plat_dev_init;