diff options
Diffstat (limited to 'drivers/net/ethernet/freescale/ucc_geth.c')
-rw-r--r-- | drivers/net/ethernet/freescale/ucc_geth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index ba2dc083bfc0..ec0905461312 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c | |||
@@ -214,8 +214,9 @@ static struct sk_buff *get_new_skb(struct ucc_geth_private *ugeth, | |||
214 | 214 | ||
215 | skb = __skb_dequeue(&ugeth->rx_recycle); | 215 | skb = __skb_dequeue(&ugeth->rx_recycle); |
216 | if (!skb) | 216 | if (!skb) |
217 | skb = dev_alloc_skb(ugeth->ug_info->uf_info.max_rx_buf_length + | 217 | skb = netdev_alloc_skb(ugeth->ndev, |
218 | UCC_GETH_RX_DATA_BUF_ALIGNMENT); | 218 | ugeth->ug_info->uf_info.max_rx_buf_length + |
219 | UCC_GETH_RX_DATA_BUF_ALIGNMENT); | ||
219 | if (skb == NULL) | 220 | if (skb == NULL) |
220 | return NULL; | 221 | return NULL; |
221 | 222 | ||
@@ -227,8 +228,6 @@ static struct sk_buff *get_new_skb(struct ucc_geth_private *ugeth, | |||
227 | (((unsigned)skb->data) & (UCC_GETH_RX_DATA_BUF_ALIGNMENT - | 228 | (((unsigned)skb->data) & (UCC_GETH_RX_DATA_BUF_ALIGNMENT - |
228 | 1))); | 229 | 1))); |
229 | 230 | ||
230 | skb->dev = ugeth->ndev; | ||
231 | |||
232 | out_be32(&((struct qe_bd __iomem *)bd)->buf, | 231 | out_be32(&((struct qe_bd __iomem *)bd)->buf, |
233 | dma_map_single(ugeth->dev, | 232 | dma_map_single(ugeth->dev, |
234 | skb->data, | 233 | skb->data, |