aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fec.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.c')
-rw-r--r--drivers/net/ethernet/freescale/fec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c
index 336edd7e0b78..f976619d1b21 100644
--- a/drivers/net/ethernet/freescale/fec.c
+++ b/drivers/net/ethernet/freescale/fec.c
@@ -711,7 +711,7 @@ fec_enet_rx(struct net_device *ndev)
711 * include that when passing upstream as it messes up 711 * include that when passing upstream as it messes up
712 * bridging applications. 712 * bridging applications.
713 */ 713 */
714 skb = dev_alloc_skb(pkt_len - 4 + NET_IP_ALIGN); 714 skb = netdev_alloc_skb(dev, pkt_len - 4 + NET_IP_ALIGN);
715 715
716 if (unlikely(!skb)) { 716 if (unlikely(!skb)) {
717 printk("%s: Memory squeeze, dropping packet.\n", 717 printk("%s: Memory squeeze, dropping packet.\n",
@@ -1210,7 +1210,7 @@ static int fec_enet_alloc_buffers(struct net_device *ndev)
1210 1210
1211 bdp = fep->rx_bd_base; 1211 bdp = fep->rx_bd_base;
1212 for (i = 0; i < RX_RING_SIZE; i++) { 1212 for (i = 0; i < RX_RING_SIZE; i++) {
1213 skb = dev_alloc_skb(FEC_ENET_RX_FRSIZE); 1213 skb = netdev_alloc_skb(dev, FEC_ENET_RX_FRSIZE);
1214 if (!skb) { 1214 if (!skb) {
1215 fec_enet_free_buffers(ndev); 1215 fec_enet_free_buffers(ndev);
1216 return -ENOMEM; 1216 return -ENOMEM;