summaryrefslogtreecommitdiff
path: root/drivers/net/irda/sir_dev.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-02-10 12:54:22 +0300
committerDavid S. Miller <davem@davemloft.net>2009-02-10 12:56:49 +0300
commite4e90b210dbe8253aaf519ee6efaaab7b2b92034 (patch)
tree3b413edd56e6c6e8bb7eff7fb8c6e621e88b4b4d /drivers/net/irda/sir_dev.c
parent9034f77bad1e86c4b43e5f5739eb3b8f4878e947 (diff)
downloadlinux-e4e90b210dbe8253aaf519ee6efaaab7b2b92034.tar.xz
irda: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/sir_dev.c')
-rw-r--r--drivers/net/irda/sir_dev.c3
1 files changed, 2 insertions, 1 deletions
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);