diff options
Diffstat (limited to 'drivers/net/ethernet/freescale/fec_mpc52xx.c')
-rw-r--r-- | drivers/net/ethernet/freescale/fec_mpc52xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx.c b/drivers/net/ethernet/freescale/fec_mpc52xx.c index 30745b56fe5d..7b34d8c698da 100644 --- a/drivers/net/ethernet/freescale/fec_mpc52xx.c +++ b/drivers/net/ethernet/freescale/fec_mpc52xx.c | |||
@@ -160,7 +160,7 @@ static int mpc52xx_fec_alloc_rx_buffers(struct net_device *dev, struct bcom_task | |||
160 | struct sk_buff *skb; | 160 | struct sk_buff *skb; |
161 | 161 | ||
162 | while (!bcom_queue_full(rxtsk)) { | 162 | while (!bcom_queue_full(rxtsk)) { |
163 | skb = dev_alloc_skb(FEC_RX_BUFFER_SIZE); | 163 | skb = netdev_alloc_skb(dev, FEC_RX_BUFFER_SIZE); |
164 | if (!skb) | 164 | if (!skb) |
165 | return -EAGAIN; | 165 | return -EAGAIN; |
166 | 166 | ||
@@ -416,7 +416,7 @@ static irqreturn_t mpc52xx_fec_rx_interrupt(int irq, void *dev_id) | |||
416 | 416 | ||
417 | /* skbs are allocated on open, so now we allocate a new one, | 417 | /* skbs are allocated on open, so now we allocate a new one, |
418 | * and remove the old (with the packet) */ | 418 | * and remove the old (with the packet) */ |
419 | skb = dev_alloc_skb(FEC_RX_BUFFER_SIZE); | 419 | skb = netdev_alloc_skb(dev, FEC_RX_BUFFER_SIZE); |
420 | if (!skb) { | 420 | if (!skb) { |
421 | /* Can't get a new one : reuse the same & drop pkt */ | 421 | /* Can't get a new one : reuse the same & drop pkt */ |
422 | dev_notice(&dev->dev, "Low memory - dropped packet.\n"); | 422 | dev_notice(&dev->dev, "Low memory - dropped packet.\n"); |