ucc_geth: Intialize link state to down before register_netdev
authorCliff Clark <cliff_clark@selinc.com>
Tue, 24 Mar 2015 21:07:26 +0000 (14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2015 22:02:48 +0000 (18:02 -0400)
commit1452db764c279f8b329f1b3b9469bd01d9e21afd
tree8059d23e3cd4b9cfc0abd48f59701d686f1abdce
parent8ad483728bc498af4b99d0036b2edb163638c64a
ucc_geth: Intialize link state to down before register_netdev

ucc_geth was indicating link up after a port is administratively enabled even
when nothing is plugged in.  This causes user-space tools to see a spurious link
up the first time after boot.

Signed-off-by: Cliff Clark <cliff_clark@selinc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c