]> git.sur5r.net Git - u-boot/commit
dm: eth: Correctly detect alias in eth_get_dev_by_name()
authorBin Meng <bmeng.cn@gmail.com>
Fri, 28 Aug 2015 05:25:54 +0000 (22:25 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 9 Sep 2015 13:48:03 +0000 (07:48 -0600)
commite408c42189861b5ca18993e8fbb6975e67d4d442
tree9f6f55b095b1b7a64ae92fe2964c2dc47be3af72
parent71d7971facdba763c220ca2cfdbd181e907eae89
dm: eth: Correctly detect alias in eth_get_dev_by_name()

When given a device name string, we should test to see if it is
really an alias like "eth#".

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/eth.c