OSDN Git Service

net: eth: altera: Fix the initial device operstate
authorAtsushi Nemoto <nemoto@toshiba-tops.co.jp>
Tue, 8 Sep 2015 09:15:41 +0000 (18:15 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2015 19:10:15 +0000 (12:10 -0700)
commitd43cefcd68bbc9a67b2c0efe38eb9cf6b5170fe8
treee8a1477ee8b4905b5a37dd633292659a0a029df9
parent7845989cb4b3da1db903918c844fccb9817d34a0
net: eth: altera: Fix the initial device operstate

Call netif_carrier_off() prior to register_netdev(), otherwise
userspace can see incorrect link state.

Signed-off-by: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_tse_main.c