]> git.baikalelectronics.ru Git - kernel.git/commit
ep93xx-eth: check for zero MAC address on probe, not on device open
authorFlorian Fainelli <florian@openwrt.org>
Sat, 28 Nov 2009 13:57:00 +0000 (13:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Nov 2009 07:50:32 +0000 (23:50 -0800)
commit9f65ea9d8d1cda992619cfbeccdb4b250f4d63a9
treec13ec087971bd55235e1dfff1ae009d63d76db46
parent3b003dfcb4dca133d41f80d5a2c48d190efa99cc
ep93xx-eth: check for zero MAC address on probe, not on device open

If we happen to have registered the driver without passing
a MAC address, we will print a zero MAC address and register
the interface with this invalid address, this is confusin. This
patch moves the checking of a valid ethernet address and the
generation of a random one down from the open function to
the probe function.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/ep93xx_eth.c