netdev: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
authorDavid S. Miller <davem@davemloft.net>
Tue, 10 Feb 2009 09:56:45 +0000 (01:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Feb 2009 09:56:45 +0000 (01:56 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/b44.c
drivers/net/defxx.c

index 92aaaa1ee9f1cbd01a45f820b1a685e8569d582c..2a51c757997688849f07be96d5e125e16031efb9 100644 (file)
@@ -973,7 +973,7 @@ static int b44_start_xmit(struct sk_buff *skb, struct net_device *dev)
                        ssb_dma_unmap_single(bp->sdev, mapping, len,
                                             DMA_TO_DEVICE);
 
-               bounce_skb = __dev_alloc_skb(len, GFP_ATOMIC | GFP_DMA);
+               bounce_skb = __netdev_alloc_skb(dev, len, GFP_ATOMIC | GFP_DMA);
                if (!bounce_skb)
                        goto err_out;
 
index 6445cedd586844ad6f544c9e1f34af3d3212d0eb..4ec055dc7174ceed6f17302d132a484151ab7671 100644 (file)
@@ -2937,7 +2937,7 @@ static int dfx_rcv_init(DFX_board_t *bp, int get_buffers)
        for (i = 0; i < (int)(bp->rcv_bufs_to_post); i++)
                for (j = 0; (i + j) < (int)PI_RCV_DATA_K_NUM_ENTRIES; j += bp->rcv_bufs_to_post)
                {
-                       struct sk_buff *newskb = __dev_alloc_skb(NEW_SKB_SIZE, GFP_NOIO);
+                       struct sk_buff *newskb = __netdev_alloc_skb(bp->dev, NEW_SKB_SIZE, GFP_NOIO);
                        if (!newskb)
                                return -ENOMEM;
                        bp->descr_block_virt->rcv_data[i+j].long_0 = (u32) (PI_RCV_DESCR_M_SOP |