From: David S. Miller Date: Tue, 10 Feb 2009 09:54:22 +0000 (-0800) Subject: irda: Use __netdev_alloc_skb() instead of __dev_alloc_skb(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4e90b210dbe8253aaf519ee6efaaab7b2b92034;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git irda: Use __netdev_alloc_skb() instead of __dev_alloc_skb(). Signed-off-by: David S. Miller --- diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c index 5b5862499def..c23d211758ae 100644 --- a/drivers/net/irda/sir_dev.c +++ b/drivers/net/irda/sir_dev.c @@ -753,7 +753,8 @@ static int sirdev_alloc_buffers(struct sir_dev *dev) dev->rx_buff.truesize = IRDA_SKB_MAX_MTU; /* Bootstrap ZeroCopy Rx */ - dev->rx_buff.skb = __dev_alloc_skb(dev->rx_buff.truesize, GFP_KERNEL); + dev->rx_buff.skb = __netdev_alloc_skb(dev->netdev, dev->rx_buff.truesize, + GFP_KERNEL); if (dev->rx_buff.skb == NULL) return -ENOMEM; skb_reserve(dev->rx_buff.skb, 1);