summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/depca.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/amd/depca.c')
-rw-r--r--drivers/net/ethernet/amd/depca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/depca.c b/drivers/net/ethernet/amd/depca.c
index 681970c07f22..86dd95766a64 100644
--- a/drivers/net/ethernet/amd/depca.c
+++ b/drivers/net/ethernet/amd/depca.c
@@ -1042,7 +1042,7 @@ static int depca_rx(struct net_device *dev)
short len, pkt_len = readw(&lp->rx_ring[entry].msg_length) - 4;
struct sk_buff *skb;
- skb = dev_alloc_skb(pkt_len + 2);
+ skb = netdev_alloc_skb(dev, pkt_len + 2);
if (skb != NULL) {
unsigned char *buf;
skb_reserve(skb, 2); /* 16 byte align the IP header */
OpenPOWER on IntegriCloud