summaryrefslogtreecommitdiff
path: root/target/linux/atheros/files/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/atheros/files/drivers/net')
-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;