diff options
author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2015-10-12 16:12:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-12 20:52:39 -0700 |
commit | d4583edb221eb7297bcbc6f0febe895a96fed5f7 (patch) | |
tree | 12009ebecc88c45d1bc114ff07fbdcdc149c1623 /drivers/staging/octeon | |
parent | 905907500cd9bae3f6bef24925d5887d5c27e5aa (diff) | |
download | blackbird-op-linux-d4583edb221eb7297bcbc6f0febe895a96fed5f7.tar.gz blackbird-op-linux-d4583edb221eb7297bcbc6f0febe895a96fed5f7.zip |
staging: octeon-ethernet: xaui: don't register poll function in init
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 <aaro.koskinen@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon')
-rw-r--r-- | drivers/staging/octeon/ethernet-xaui.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/octeon/ethernet-xaui.c b/drivers/staging/octeon/ethernet-xaui.c index 4b47bcfaabb1..9097edf10230 100644 --- a/drivers/staging/octeon/ethernet-xaui.c +++ b/drivers/staging/octeon/ethernet-xaui.c @@ -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; } |