tools: fix GNU stat detection to prevent it from picking up other things named "gstat...
[openwrt.git] / target / linux / lantiq / files-3.1 / arch / mips / lantiq / xway / dev-wifi-ath5k.c
1 /*
2  *  Copyright (C) 2011 John Crispin <blogic@openwrt.org>
3  *  Copyright (C) 2011 Andrej Vlašić <andrej.vlasic0@gmail.com>
4  *
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.
8  */
9
10 #include <linux/init.h>
11 #include <linux/platform_device.h>
12 #include <linux/ath5k_platform.h>
13 #include <linux/pci.h>
14
15 #include "dev-wifi-ath5k.h"
16
17 extern int (*ltqpci_plat_dev_init)(struct pci_dev *dev);
18 struct ath5k_platform_data ath5k_pdata;
19
20 static int 
21 ath5k_pci_plat_dev_init(struct pci_dev *dev)
22 {
23         dev->dev.platform_data = &ath5k_pdata;
24         return 0;
25 }
26
27 void __init
28 ltq_register_ath5k(u16 *eeprom_data, u8 *macaddr)
29 {
30         ath5k_pdata.eeprom_data = eeprom_data;
31         ath5k_pdata.macaddr = macaddr;
32         ltqpci_plat_dev_init = ath5k_pci_plat_dev_init;
33 }