diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-18 20:52:23 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-14 22:22:57 +0200 |
commit | 048864571f4816f34259519b31033c3986cb2e88 (patch) | |
tree | ce02f4b208ca74c62b1485590c05addb0cfaa791 /net | |
parent | ffc5fe072354ba8c477920245ff2fd809043cdbd (diff) | |
download | barebox-048864571f4816f34259519b31033c3986cb2e88.tar.gz barebox-048864571f4816f34259519b31033c3986cb2e88.tar.xz |
net: eth: open correct edev in eth_check_open
eth_check_open gets the network device to check as parameter, so
use it rather than using eth_current. Currently both are the same,
so this currently does not fix anything.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -228,7 +228,7 @@ static int eth_check_open(struct eth_device *edev) if (edev->active) return 0; - ret = edev->open(eth_current); + ret = edev->open(edev); if (ret) return ret; |