staging: octeon-ethernet: xaui: don't register poll function in init
authorAaro Koskinen <aaro.koskinen@nokia.com>
Mon, 12 Oct 2015 13:12:33 +0000 (16:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:52:39 +0000 (20:52 -0700)
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>
drivers/staging/octeon/ethernet-xaui.c

index 4b47bcfaabb15a928fe92f9842ed846f1e02a1f9..9097edf102302f5de79c1a790ed8f3c5b516931d 100644 (file)
@@ -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;
 }