summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/racal/ni5010.c
diff options
context:
space:
mode:
authorPradeep A. Dalvi <netdev@pradeepdalvi.com>2012-02-06 12:16:13 +0100
committerDavid S. Miller <davem@davemloft.net>2012-02-09 00:46:38 +0100
commitdae2e9f430c46c29e3f771110094bd3da3625aa4 (patch)
treeb78b2671d2566ea5795349e5dadf8ef786b507f5 /drivers/net/ethernet/racal/ni5010.c
parentipv6: Implement IPV6_UNICAST_IF socket option. (diff)
downloadlinux-dae2e9f430c46c29e3f771110094bd3da3625aa4.tar.xz
linux-dae2e9f430c46c29e3f771110094bd3da3625aa4.zip
netdev: ethernet dev_alloc_skb to netdev_alloc_skb
Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet - Removed extra skb->dev = dev after netdev_alloc_skb Signed-off-by: Pradeep A Dalvi <netdev@pradeepdalvi.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/racal/ni5010.c')
-rw-r--r--drivers/net/ethernet/racal/ni5010.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/racal/ni5010.c b/drivers/net/ethernet/racal/ni5010.c
index 072810da9a37..807982220050 100644
--- a/drivers/net/ethernet/racal/ni5010.c
+++ b/drivers/net/ethernet/racal/ni5010.c
@@ -552,7 +552,7 @@ static void ni5010_rx(struct net_device *dev)
}
/* Malloc up new buffer. */
- skb = dev_alloc_skb(i_pkt_size + 3);
+ skb = netdev_alloc_skb(dev, i_pkt_size + 3);
if (skb == NULL) {
printk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev->stats.rx_dropped++;