projects
/
openwrt
/
staging
/
pepe2k.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0648553
)
ramips: raeth: use netdev_alloc_skb
author
Gabor Juhos
<juhosg@openwrt.org>
Wed, 15 Feb 2012 18:33:41 +0000
(18:33 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Wed, 15 Feb 2012 18:33:41 +0000
(18:33 +0000)
SVN-Revision: 30554
target/linux/ramips/files/drivers/net/ramips.c
patch
|
blob
|
history
diff --git
a/target/linux/ramips/files/drivers/net/ramips.c
b/target/linux/ramips/files/drivers/net/ramips.c
index 781a68b057c8fa0ad10b2f93ec0bbfe28a0425cd..f9864500f74348ffba3cd3ad78dd338796ffdff8 100644
(file)
--- 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;