From 1fd8724e94190dd8f2c893ea6dd7e72cdc8f36eb Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sat, 11 Feb 2012 15:12:06 +0000 Subject: [PATCH] ramips: raeth: add netdev pointer to private structure SVN-Revision: 30448 --- target/linux/ramips/files/drivers/net/ramips.c | 1 + target/linux/ramips/files/drivers/net/ramips_eth.h | 1 + 2 files changed, 2 insertions(+) diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index 273c00dc2a1..3ee8e823c19 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 7d5296b21ba..87e67a581e7 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; -- 2.30.2