mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ramips: specify eeprom file name on RT305X
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27392 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/physmap.h>
|
#include <linux/mtd/physmap.h>
|
||||||
|
#include <linux/rt2x00_platform.h>
|
||||||
|
|
||||||
#include <asm/addrspace.h>
|
#include <asm/addrspace.h>
|
||||||
|
|
||||||
@@ -176,17 +177,19 @@ static struct resource rt305x_wifi_resources[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct rt2x00_platform_data rt305x_wifi_data;
|
||||||
static struct platform_device rt305x_wifi_device = {
|
static struct platform_device rt305x_wifi_device = {
|
||||||
.name = "rt2800_wmac",
|
.name = "rt2800_wmac",
|
||||||
.resource = rt305x_wifi_resources,
|
.resource = rt305x_wifi_resources,
|
||||||
.num_resources = ARRAY_SIZE(rt305x_wifi_resources),
|
.num_resources = ARRAY_SIZE(rt305x_wifi_resources),
|
||||||
.dev = {
|
.dev = {
|
||||||
.platform_data = NULL,
|
.platform_data = &rt305x_wifi_data,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init rt305x_register_wifi(void)
|
void __init rt305x_register_wifi(void)
|
||||||
{
|
{
|
||||||
|
rt305x_wifi_data.eeprom_file_name = "RT305X.eeprom";
|
||||||
platform_device_register(&rt305x_wifi_device);
|
platform_device_register(&rt305x_wifi_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user