diff options
Diffstat (limited to 'drivers/net/phy/sfp-bus.c')
| -rw-r--r-- | drivers/net/phy/sfp-bus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c index ad9db652874d..fef701bfad62 100644 --- a/drivers/net/phy/sfp-bus.c +++ b/drivers/net/phy/sfp-bus.c | |||
| @@ -347,6 +347,7 @@ static int sfp_register_bus(struct sfp_bus *bus) | |||
| 347 | return ret; | 347 | return ret; |
| 348 | } | 348 | } |
| 349 | } | 349 | } |
| 350 | bus->socket_ops->attach(bus->sfp); | ||
| 350 | if (bus->started) | 351 | if (bus->started) |
| 351 | bus->socket_ops->start(bus->sfp); | 352 | bus->socket_ops->start(bus->sfp); |
| 352 | bus->netdev->sfp_bus = bus; | 353 | bus->netdev->sfp_bus = bus; |
| @@ -362,6 +363,7 @@ static void sfp_unregister_bus(struct sfp_bus *bus) | |||
| 362 | if (bus->registered) { | 363 | if (bus->registered) { |
| 363 | if (bus->started) | 364 | if (bus->started) |
| 364 | bus->socket_ops->stop(bus->sfp); | 365 | bus->socket_ops->stop(bus->sfp); |
| 366 | bus->socket_ops->detach(bus->sfp); | ||
| 365 | if (bus->phydev && ops && ops->disconnect_phy) | 367 | if (bus->phydev && ops && ops->disconnect_phy) |
| 366 | ops->disconnect_phy(bus->upstream); | 368 | ops->disconnect_phy(bus->upstream); |
| 367 | } | 369 | } |
