summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/arch/mips/ralink
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-31 17:56:30 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-31 17:56:30 +0000
commit1630830019f06b8494d259475ce5fb7a3f598780 (patch)
tree630f9e91c1fe0ac2f0ddf0cb661b8e56305b4c94 /target/linux/ramips/files/arch/mips/ralink
parent6fdc10668dfe5d30d26987a8a034764df639657c (diff)
ramips_eth: pass sys_clk via platform_data
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19462 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
index 4ad93b580..6a810a3a0 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
@@ -118,7 +118,7 @@ static struct resource rt305x_eth_resources[] = {
static struct ramips_eth_platform_data ramips_eth_data = {
.mac = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 },
.reset_fe = rt305x_fe_reset,
- .min_pkt_len = 64
+ .min_pkt_len = 64,
};
static struct platform_device rt305x_eth_device = {
@@ -132,5 +132,7 @@ static struct platform_device rt305x_eth_device = {
void __init rt305x_register_ethernet(void)
{
+ ramips_eth_data.sys_freq = rt305x_sys_freq;
+
platform_device_register(&rt305x_eth_device);
}