Skip to content

Commit

Permalink
staging: octeon-ethernet: xaui: use common init
Browse files Browse the repository at this point in the history
Use common init.

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 d4583ed commit 41cb578
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions drivers/staging/octeon/ethernet-xaui.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,3 @@ int cvm_oct_xaui_open(struct net_device *dev)
{
return cvm_oct_common_open(dev, cvm_oct_link_poll, true);
}

int cvm_oct_xaui_init(struct net_device *dev)
{
cvm_oct_common_init(dev);

return 0;
}
2 changes: 1 addition & 1 deletion drivers/staging/octeon/ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ static const struct net_device_ops cvm_oct_npi_netdev_ops = {
#endif
};
static const struct net_device_ops cvm_oct_xaui_netdev_ops = {
.ndo_init = cvm_oct_xaui_init,
.ndo_init = cvm_oct_common_init,
.ndo_uninit = cvm_oct_common_uninit,
.ndo_open = cvm_oct_xaui_open,
.ndo_stop = cvm_oct_common_stop,
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/octeon/octeon-ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ int cvm_oct_sgmii_open(struct net_device *dev);

int cvm_oct_spi_init(struct net_device *dev);
void cvm_oct_spi_uninit(struct net_device *dev);
int cvm_oct_xaui_init(struct net_device *dev);
int cvm_oct_xaui_open(struct net_device *dev);

int cvm_oct_common_init(struct net_device *dev);
Expand Down

0 comments on commit 41cb578

Please sign in to comment.