remove strange direct usage of dev->priv as well
authorGabor Juhos <juhosg@openwrt.org>
Sun, 20 Apr 2008 07:14:45 +0000 (07:14 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 20 Apr 2008 07:14:45 +0000 (07:14 +0000)
SVN-Revision: 10875

target/linux/atheros/files/drivers/net/ar2313/ar2313.c

index 4e3c1d64c8cbe258d710b31bd729d92dce457de3..873ee639702a1d8c17f587ccb8f96b03048cffe3 100644 (file)
@@ -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;