2 * Copyright (C) 2011 John Crispin <blogic@openwrt.org>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
9 #include <linux/init.h>
10 #include <linux/platform_device.h>
11 #include <linux/rt2x00_platform.h>
12 #include <linux/pci.h>
14 #include "dev-wifi-rt2x00.h"
16 extern int (*ltqpci_plat_dev_init
)(struct pci_dev
*dev
);
17 struct rt2x00_platform_data rt2x00_pdata
;
20 rt2x00_pci_plat_dev_init(struct pci_dev
*dev
)
22 dev
->dev
.platform_data
= &rt2x00_pdata
;
27 ltq_register_rt2x00(const char *firmware
, const u8
*mac
)
29 rt2x00_pdata
.eeprom_file_name
= kstrdup(firmware
, GFP_KERNEL
);
30 rt2x00_pdata
.mac_address
= mac
;
31 ltqpci_plat_dev_init
= rt2x00_pci_plat_dev_init
;