diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2014-08-05 18:30:44 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-05 23:47:02 (GMT) |
commit | 88131a812b16b45cf999e577ad8d89b41ad606e3 (patch) | |
tree | 19519ab7ec4444ccdd97e05b22a126ee6f511985 /arch/alpha/defconfig | |
parent | f3d0e78d2e733176c2b0d23e7a7d871c7a33c2d6 (diff) | |
download | linux-88131a812b16b45cf999e577ad8d89b41ad606e3.tar.xz |
amd-xgbe: Perform phy connect/disconnect at dev open/stop
A change added to the mdiobus/phy api added a module_get/module_put
during phy connect/disconnect processing. Currently, the driver
performs a phy connect during module probe and a phy disconnect during
module remove. With the addition of the module_get during phy connect
the amd-xgbe module use count is incremented and can no longer be
unloaded.
Move the phy connect/disconnect from the driver probe/remove functions
to the net_device_ops ndo_open/ndo_stop functions. This allows the
module use count to be decremented when the device(s) are brought down
and allows the module to be unloaded.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/alpha/defconfig')
0 files changed, 0 insertions, 0 deletions