net: driver: smsc: set NOCARRIER flag in dev at driver initialization

As smsc driver supports carrier detection, it should unset NOCARRIER
flag only after carrier state determination. By default that flag
is off so driver should set it before starting auto-negotiation

Signed-off-by: Balakumaran <Balakumaran.Kannan@ap.sony.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Balakumaran Kannan 2014-06-03 22:13:48 +05:30 committed by David S. Miller
parent 21ee543edc
commit 31f6f291b6

View file

@ -2477,6 +2477,8 @@ static int smsc911x_drv_probe(struct platform_device *pdev)
goto out_disable_resources; goto out_disable_resources;
} }
netif_carrier_off(dev);
retval = register_netdev(dev); retval = register_netdev(dev);
if (retval) { if (retval) {
SMSC_WARN(pdata, probe, "Error %i registering device", retval); SMSC_WARN(pdata, probe, "Error %i registering device", retval);