summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mipsnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/mipsnet.c')
-rw-r--r--drivers/net/ethernet/mipsnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mipsnet.c b/drivers/net/ethernet/mipsnet.c
index d05b0c9e1e9c..dbc666a3d523 100644
--- a/drivers/net/ethernet/mipsnet.c
+++ b/drivers/net/ethernet/mipsnet.c
@@ -152,7 +152,7 @@ static inline ssize_t mipsnet_get_fromdev(struct net_device *dev, size_t len)
if (!len)
return len;
- skb = dev_alloc_skb(len + NET_IP_ALIGN);
+ skb = netdev_alloc_skb(dev, len + NET_IP_ALIGN);
if (!skb) {
dev->stats.rx_dropped++;
return -ENOMEM;