ramips: raeth: add netdev pointer to private structure
authorGabor Juhos <juhosg@openwrt.org>
Sat, 11 Feb 2012 15:12:06 +0000 (15:12 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 11 Feb 2012 15:12:06 +0000 (15:12 +0000)
SVN-Revision: 30448

target/linux/ramips/files/drivers/net/ramips.c
target/linux/ramips/files/drivers/net/ramips_eth.h

index 273c00dc2a1c7ef1284aa85e27f2790236827715..3ee8e823c19830541e459bd8648f855d990e9478 100644 (file)
@@ -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;
index 7d5296b21bae951c7b40f8883f7910fa35c8b5f6..87e67a581e7001983b6806dc302ce2ed3989c7e6 100644 (file)
@@ -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;