aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tsi108_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tsi108_eth.c')
-rw-r--r--drivers/net/tsi108_eth.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c
index c028facd9346..febfaee44fe9 100644
--- a/drivers/net/tsi108_eth.c
+++ b/drivers/net/tsi108_eth.c
@@ -803,7 +803,8 @@ static int tsi108_refill_rx(struct net_device *dev, int budget)
803 int rx = data->rxhead; 803 int rx = data->rxhead;
804 struct sk_buff *skb; 804 struct sk_buff *skb;
805 805
806 data->rxskbs[rx] = skb = dev_alloc_skb(TSI108_RXBUF_SIZE + 2); 806 data->rxskbs[rx] = skb = netdev_alloc_skb(dev,
807 TSI108_RXBUF_SIZE + 2);
807 if (!skb) 808 if (!skb)
808 break; 809 break;
809 810
@@ -1352,8 +1353,9 @@ static int tsi108_open(struct net_device *dev)
1352 data->rxhead = 0; 1353 data->rxhead = 0;
1353 1354
1354 for (i = 0; i < TSI108_RXRING_LEN; i++) { 1355 for (i = 0; i < TSI108_RXRING_LEN; i++) {
1355 struct sk_buff *skb = dev_alloc_skb(TSI108_RXBUF_SIZE + NET_IP_ALIGN); 1356 struct sk_buff *skb;
1356 1357
1358 skb = netdev_alloc_skb(dev, TSI108_RXBUF_SIZE + NET_IP_ALIGN);
1357 if (!skb) { 1359 if (!skb) {
1358 /* Bah. No memory for now, but maybe we'll get 1360 /* Bah. No memory for now, but maybe we'll get
1359 * some more later. 1361 * some more later.