aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-04-20 07:14:45 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-04-20 07:14:45 +0000
commit88dbe9e906c14ebc8f46e7415eede8a674aa1913 (patch)
treece1cd6dc4bfb66c6ddeba248dab3e974dad1d4f1 /target/linux
parent32fe4ae45f3d770da1a2c2b9c9118baa52d72b4b (diff)
downloadupstream-88dbe9e906c14ebc8f46e7415eede8a674aa1913.tar.gz
upstream-88dbe9e906c14ebc8f46e7415eede8a674aa1913.tar.bz2
upstream-88dbe9e906c14ebc8f46e7415eede8a674aa1913.zip
[atheros] remove strange direct usage of dev->priv as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10875 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/atheros/files/drivers/net/ar2313/ar2313.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c
index 4e3c1d64c8..873ee63970 100644
--- a/target/linux/atheros/files/drivers/net/ar2313/ar2313.c
+++ b/target/linux/atheros/files/drivers/net/ar2313/ar2313.c
@@ -826,7 +826,7 @@ static int ar2313_init(struct net_device *dev)
static void ar2313_load_rx_ring(struct net_device *dev, int nr_bufs)
{
- struct ar2313_private *sp = ((struct net_device *) dev)->priv;
+ struct ar2313_private *sp = netdev_priv(dev);
short i, idx;
idx = sp->rx_skbprd;