OSDN Git Service

staging: octeon-ethernet: delete sgmii and xaui specific uninit functions
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 4 Apr 2015 19:51:05 +0000 (22:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Apr 2015 14:59:23 +0000 (16:59 +0200)
Delete redundant wrappers.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-sgmii.c
drivers/staging/octeon/ethernet-xaui.c
drivers/staging/octeon/ethernet.c
drivers/staging/octeon/octeon-ethernet.h

index cd791c3..1158eac 100644 (file)
@@ -89,8 +89,3 @@ int cvm_oct_sgmii_init(struct net_device *dev)
        /* FIXME: Need autoneg logic */
        return 0;
 }
-
-void cvm_oct_sgmii_uninit(struct net_device *dev)
-{
-       cvm_oct_common_uninit(dev);
-}
index 5782c38..3714fae 100644 (file)
@@ -92,8 +92,3 @@ int cvm_oct_xaui_init(struct net_device *dev)
 
        return 0;
 }
-
-void cvm_oct_xaui_uninit(struct net_device *dev)
-{
-       cvm_oct_common_uninit(dev);
-}
index fdd23bf..a7f1fcb 100644 (file)
@@ -556,7 +556,7 @@ static const struct net_device_ops cvm_oct_npi_netdev_ops = {
 };
 static const struct net_device_ops cvm_oct_xaui_netdev_ops = {
        .ndo_init               = cvm_oct_xaui_init,
-       .ndo_uninit             = cvm_oct_xaui_uninit,
+       .ndo_uninit             = cvm_oct_common_uninit,
        .ndo_open               = cvm_oct_xaui_open,
        .ndo_stop               = cvm_oct_common_stop,
        .ndo_start_xmit         = cvm_oct_xmit,
@@ -571,7 +571,7 @@ static const struct net_device_ops cvm_oct_xaui_netdev_ops = {
 };
 static const struct net_device_ops cvm_oct_sgmii_netdev_ops = {
        .ndo_init               = cvm_oct_sgmii_init,
-       .ndo_uninit             = cvm_oct_sgmii_uninit,
+       .ndo_uninit             = cvm_oct_common_uninit,
        .ndo_open               = cvm_oct_sgmii_open,
        .ndo_stop               = cvm_oct_common_stop,
        .ndo_start_xmit         = cvm_oct_xmit,
index 2581554..3ad713f 100644 (file)
@@ -73,13 +73,11 @@ extern void cvm_oct_rgmii_uninit(struct net_device *dev);
 extern int cvm_oct_rgmii_open(struct net_device *dev);
 
 extern int cvm_oct_sgmii_init(struct net_device *dev);
-extern void cvm_oct_sgmii_uninit(struct net_device *dev);
 extern int cvm_oct_sgmii_open(struct net_device *dev);
 
 extern int cvm_oct_spi_init(struct net_device *dev);
 extern void cvm_oct_spi_uninit(struct net_device *dev);
 extern int cvm_oct_xaui_init(struct net_device *dev);
-extern void cvm_oct_xaui_uninit(struct net_device *dev);
 extern int cvm_oct_xaui_open(struct net_device *dev);
 
 extern int cvm_oct_common_init(struct net_device *dev);