aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-02-10 04:56:45 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-10 04:56:45 -0500
commit9034f77bad1e86c4b43e5f5739eb3b8f4878e947 (patch)
tree06c0da53d43e6ed1031611aba40a4575c1b536e7
parent149490f131ab532a3b9e8806249a0e730994cdf6 (diff)
netdev: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/b44.c2
-rw-r--r--drivers/net/defxx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c
index 92aaaa1ee9f1..2a51c7579976 100644
--- a/drivers/net/b44.c
+++ b/drivers/net/b44.c
@@ -973,7 +973,7 @@ static int b44_start_xmit(struct sk_buff *skb, struct net_device *dev)
973 ssb_dma_unmap_single(bp->sdev, mapping, len, 973 ssb_dma_unmap_single(bp->sdev, mapping, len,
974 DMA_TO_DEVICE); 974 DMA_TO_DEVICE);
975 975
976 bounce_skb = __dev_alloc_skb(len, GFP_ATOMIC | GFP_DMA); 976 bounce_skb = __netdev_alloc_skb(dev, len, GFP_ATOMIC | GFP_DMA);
977 if (!bounce_skb) 977 if (!bounce_skb)
978 goto err_out; 978 goto err_out;
979 979
diff --git a/drivers/net/defxx.c b/drivers/net/defxx.c
index 6445cedd5868..4ec055dc7174 100644
--- a/drivers/net/defxx.c
+++ b/drivers/net/defxx.c
@@ -2937,7 +2937,7 @@ static int dfx_rcv_init(DFX_board_t *bp, int get_buffers)
2937 for (i = 0; i < (int)(bp->rcv_bufs_to_post); i++) 2937 for (i = 0; i < (int)(bp->rcv_bufs_to_post); i++)
2938 for (j = 0; (i + j) < (int)PI_RCV_DATA_K_NUM_ENTRIES; j += bp->rcv_bufs_to_post) 2938 for (j = 0; (i + j) < (int)PI_RCV_DATA_K_NUM_ENTRIES; j += bp->rcv_bufs_to_post)
2939 { 2939 {
2940 struct sk_buff *newskb = __dev_alloc_skb(NEW_SKB_SIZE, GFP_NOIO); 2940 struct sk_buff *newskb = __netdev_alloc_skb(bp->dev, NEW_SKB_SIZE, GFP_NOIO);
2941 if (!newskb) 2941 if (!newskb)
2942 return -ENOMEM; 2942 return -ENOMEM;
2943 bp->descr_block_virt->rcv_data[i+j].long_0 = (u32) (PI_RCV_DESCR_M_SOP | 2943 bp->descr_block_virt->rcv_data[i+j].long_0 = (u32) (PI_RCV_DESCR_M_SOP |