Skip to content

Commit

Permalink
staging: octeon-ethernet: xaui: don't register poll function in init
Browse files Browse the repository at this point in the history
Link status poll function is already controlled by open/stop functions,
so we don't need to do it on init.

This eliminates a redundant xaui link status notification when the module
is loaded.

Signed-off-by: Aaro Koskinen <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
aakoskin authored and gregkh committed Oct 13, 2015
1 parent 9059075 commit d4583ed
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/octeon/ethernet-xaui.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ int cvm_oct_xaui_open(struct net_device *dev)

int cvm_oct_xaui_init(struct net_device *dev)
{
struct octeon_ethernet *priv = netdev_priv(dev);

cvm_oct_common_init(dev);
if (!octeon_is_simulation() && priv->phydev == NULL)
priv->poll = cvm_oct_link_poll;

return 0;
}

0 comments on commit d4583ed

Please sign in to comment.