diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-02-15 18:33:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-02-15 18:33:41 +0000 |
commit | 4a3dcaa55d80781c65fbb8020218765bef97fd2f (patch) | |
tree | 1e3c7a05907bca3fa2f84b8116f755270f9e0a2b /target | |
parent | 8d0f341a2ffc3fc66409b93cadc64095a87286e4 (diff) | |
download | upstream-4a3dcaa55d80781c65fbb8020218765bef97fd2f.tar.gz upstream-4a3dcaa55d80781c65fbb8020218765bef97fd2f.tar.bz2 upstream-4a3dcaa55d80781c65fbb8020218765bef97fd2f.zip |
ramips: raeth: use netdev_alloc_skb
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30554 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips.c | 5 |
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; |