summaryrefslogtreecommitdiff
path: root/target
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
commit1ffb70c7b071d814c79dc2b8a593e1c3ade782fa (patch)
tree76f12ca1674822c14137ccf78f046ff2bcda09e6 /target
parent64d1c3a2e1a97dd3bf5a3d48c26bbe80342dec79 (diff)
downloadmtk-20170518-1ffb70c7b071d814c79dc2b8a593e1c3ade782fa.zip
mtk-20170518-1ffb70c7b071d814c79dc2b8a593e1c3ade782fa.tar.gz
mtk-20170518-1ffb70c7b071d814c79dc2b8a593e1c3ade782fa.tar.bz2
remove strange direct usage of dev->priv as well
SVN-Revision: 10875
Diffstat (limited to 'target')
-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 4e3c1d6..873ee63 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;