summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-11 15:12:06 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-11 15:12:06 +0000
commit5b41176cdcbe969fb158a846f53cf1be12f5cbc2 (patch)
tree03daf414261f90718955ab24b01e9f9d093eac44 /target/linux
parent1e38789510260b1a4b1502c754e9abdb27b5ac8d (diff)
ramips: raeth: add netdev pointer to private structure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30448 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c1
-rw-r--r--target/linux/ramips/files/drivers/net/ramips_eth.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c
index 273c00dc2..3ee8e823c 100644
--- a/target/linux/ramips/files/drivers/net/ramips.c
+++ b/target/linux/ramips/files/drivers/net/ramips.c
@@ -518,6 +518,7 @@ ramips_eth_plat_probe(struct platform_device *plat)
priv = netdev_priv(ramips_dev);
+ priv->netdev = ramips_dev;
priv->speed = data->speed;
priv->duplex = data->duplex;
priv->rx_fc = data->rx_fc;
diff --git a/target/linux/ramips/files/drivers/net/ramips_eth.h b/target/linux/ramips/files/drivers/net/ramips_eth.h
index 7d5296b21..87e67a581 100644
--- a/target/linux/ramips/files/drivers/net/ramips_eth.h
+++ b/target/linux/ramips/files/drivers/net/ramips_eth.h
@@ -229,6 +229,7 @@ struct raeth_priv
unsigned int skb_free_idx;
spinlock_t page_lock;
+ struct net_device *netdev;
struct ramips_eth_platform_data *plat;
int speed;