diff options
Diffstat (limited to 'drivers/net/ethernet/cirrus/cs89x0.c')
-rw-r--r-- | drivers/net/ethernet/cirrus/cs89x0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cirrus/cs89x0.c b/drivers/net/ethernet/cirrus/cs89x0.c index f328da24c8fa..d5ff93653e4c 100644 --- a/drivers/net/ethernet/cirrus/cs89x0.c +++ b/drivers/net/ethernet/cirrus/cs89x0.c | |||
@@ -911,7 +911,7 @@ dma_rx(struct net_device *dev) | |||
911 | } | 911 | } |
912 | 912 | ||
913 | /* Malloc up new buffer. */ | 913 | /* Malloc up new buffer. */ |
914 | skb = dev_alloc_skb(length + 2); | 914 | skb = netdev_alloc_skb(dev, length + 2); |
915 | if (skb == NULL) { | 915 | if (skb == NULL) { |
916 | if (net_debug) /* I don't think we want to do this to a stressed system */ | 916 | if (net_debug) /* I don't think we want to do this to a stressed system */ |
917 | printk("%s: Memory squeeze, dropping packet.\n", dev->name); | 917 | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
@@ -1616,7 +1616,7 @@ net_rx(struct net_device *dev) | |||
1616 | } | 1616 | } |
1617 | 1617 | ||
1618 | /* Malloc up new buffer. */ | 1618 | /* Malloc up new buffer. */ |
1619 | skb = dev_alloc_skb(length + 2); | 1619 | skb = netdev_alloc_skb(dev, length + 2); |
1620 | if (skb == NULL) { | 1620 | if (skb == NULL) { |
1621 | #if 0 /* Again, this seems a cruel thing to do */ | 1621 | #if 0 /* Again, this seems a cruel thing to do */ |
1622 | printk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name); | 1622 | printk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name); |