summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-31 17:56:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-31 17:56:30 +0000
commit72b08b729a6d694880c557c2442b4413195373c3 (patch)
tree20aa45c62f087f58aa36296ae9adaa6fbb2b2143 /target/linux/ramips/files/drivers
parentfb29bd369ac81d846170081479c3ebd0e3d020b1 (diff)
downloadmaster-31e0f0ae-72b08b729a6d694880c557c2442b4413195373c3.tar.gz
master-31e0f0ae-72b08b729a6d694880c557c2442b4413195373c3.tar.bz2
master-31e0f0ae-72b08b729a6d694880c557c2442b4413195373c3.zip
ramips_eth: pass sys_clk via platform_data
SVN-Revision: 19462
Diffstat (limited to 'target/linux/ramips/files/drivers')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c
index d8be97c7a7..d3df2f2588 100644
--- a/target/linux/ramips/files/drivers/net/ramips.c
+++ b/target/linux/ramips/files/drivers/net/ramips.c
@@ -332,7 +332,7 @@ ramips_eth_open(struct net_device *dev)
RAMIPS_PDMA_GLO_CFG);
ramips_fe_wr((ramips_fe_rr(RAMIPS_FE_GLO_CFG) &
~(RAMIPS_US_CYC_CNT_MASK << RAMIPS_US_CYC_CNT_SHIFT)) |
- ((rt305x_sys_freq / RAMIPS_US_CYC_CNT_DIVISOR) << RAMIPS_US_CYC_CNT_SHIFT),
+ ((priv->plat->sys_freq / RAMIPS_US_CYC_CNT_DIVISOR) << RAMIPS_US_CYC_CNT_SHIFT),
RAMIPS_FE_GLO_CFG);
tasklet_init(&priv->tx_housekeeping_tasklet, ramips_eth_tx_housekeeping,