aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-15 18:33:41 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-15 18:33:41 +0000
commite57546de8301e27f3fb0d29973093ac076a181fa (patch)
tree3ed0c91ef489d49f94edc03dc4c1d47b7ea11c06 /target/linux/ramips
parent064855314b6650debf9ab84cf51b145629393960 (diff)
downloadupstream-e57546de8301e27f3fb0d29973093ac076a181fa.tar.gz
upstream-e57546de8301e27f3fb0d29973093ac076a181fa.tar.bz2
upstream-e57546de8301e27f3fb0d29973093ac076a181fa.zip
ramips: raeth: use netdev_alloc_skb
SVN-Revision: 30554
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c
index 781a68b057..f9864500f7 100644
--- a/target/linux/ramips/files/drivers/net/ramips.c
+++ b/target/linux/ramips/files/drivers/net/ramips.c
@@ -520,9 +520,10 @@ ramips_alloc_dma(struct raeth_priv *re)
memset(re->rx, 0, sizeof(struct ramips_rx_dma) * NUM_RX_DESC);
for (i = 0; i < NUM_RX_DESC; i++) {
dma_addr_t dma_addr;
- struct sk_buff *new_skb = dev_alloc_skb(MAX_RX_LENGTH +
- NET_IP_ALIGN);
+ struct sk_buff *new_skb;
+ new_skb = netdev_alloc_skb(re->netdev,
+ MAX_RX_LENGTH + NET_IP_ALIGN);
if (!new_skb)
goto err_cleanup;