summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2015-07-21 00:23:48 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-23 10:51:04 +0200
commit06df5b2092225edb80cac47c4888ebac4d7348d4 (patch)
tree85cafecbfc4bcb3008120857a0821d5a4742afc7 /net
parent0011d7c1fc43d51359f2f966215049e0ee8f5b62 (diff)
downloadbarebox-06df5b2092225edb80cac47c4888ebac4d7348d4.tar.gz
barebox-06df5b2092225edb80cac47c4888ebac4d7348d4.tar.xz
net: eth_send: Allow to use multiple network interfaces at once
The commit commit be0404c21f22da2d736168b2e56a9ae583cc3e95 Author: Sascha Hauer <s.hauer@pengutronix.de> Date: Wed May 14 16:08:04 2014 +0200 net: Allow to use multiple network interfaces at once changes the eth_send() function: - return eth_current->send(eth_current, packet, length); + return edev->send(eth_current, packet, length); But we have to change the both eth_current occurrences to edev here! Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c
index a090961bca..bea4706865 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -243,7 +243,7 @@ int eth_send(struct eth_device *edev, void *packet, int length)
led_trigger_network(LED_TRIGGER_NET_TX);
- return edev->send(eth_current, packet, length);
+ return edev->send(edev, packet, length);
}
static int __eth_rx(struct eth_device *edev)