aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/defxx.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-02-10 01:56:45 -0800
committerDavid S. Miller <davem@davemloft.net>2009-02-10 01:56:45 -0800
commit9034f77bad1e86c4b43e5f5739eb3b8f4878e947 (patch)
tree06c0da53d43e6ed1031611aba40a4575c1b536e7 /drivers/net/defxx.c
parent149490f131ab532a3b9e8806249a0e730994cdf6 (diff)
downloadkernel_samsung_smdk4412-9034f77bad1e86c4b43e5f5739eb3b8f4878e947.zip
kernel_samsung_smdk4412-9034f77bad1e86c4b43e5f5739eb3b8f4878e947.tar.gz
kernel_samsung_smdk4412-9034f77bad1e86c4b43e5f5739eb3b8f4878e947.tar.bz2
netdev: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/defxx.c')
-rw-r--r--drivers/net/defxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/defxx.c b/drivers/net/defxx.c
index 6445cedd..4ec055d 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)
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 |