summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/3com/3c501.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/3com/3c501.c')
-rw-r--r--drivers/net/ethernet/3com/3c501.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/3com/3c501.c b/drivers/net/ethernet/3com/3c501.c
index 68da81d476f..bf73e1a0229 100644
--- a/drivers/net/ethernet/3com/3c501.c
+++ b/drivers/net/ethernet/3com/3c501.c
@@ -702,7 +702,7 @@ static void el_receive(struct net_device *dev)
*/
outb(AX_SYS, AX_CMD);
- skb = dev_alloc_skb(pkt_len+2);
+ skb = netdev_alloc_skb(dev, pkt_len + 2);
/*
* Start of frame