smsc911x: fix BUG if module is removed while interface is up
authorSteve Glendinning <steve.glendinning@smsc.com>
Fri, 26 Dec 2008 00:40:19 +0000 (16:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 00:40:19 +0000 (16:40 -0800)
commitdd0451938815d8b901488b1058f52023892c6cde
treedbb70ece42aa24d11cbf567357080b1f13eb8c2f
parent6332178d91ca1a9dbd99bd97cabbcf965d178e9f
smsc911x: fix BUG if module is removed while interface is up

If the module is removed while its interface is up, smsc911x_stop is not
called until after smsc911x_drv_remove has disposed of phy_dev.  This
patch changes the stop method to handle this situation.

This is a different problem to the one reported by dfoley@telus.net.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smsc911x.c