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>
This commit is contained in:
parent
905907500c
commit
d4583edb22
@ -32,11 +32,7 @@ int cvm_oct_xaui_open(struct net_device *dev)
|
|||||||
|
|
||||||
int cvm_oct_xaui_init(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);
|
cvm_oct_common_init(dev);
|
||||||
if (!octeon_is_simulation() && priv->phydev == NULL)
|
|
||||||
priv->poll = cvm_oct_link_poll;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user