xgbe: constify get_netdev_ops and get_ethtool_ops
[deliverable/linux.git] / drivers / net / ethernet / amd / xgbe / xgbe-drv.c
index a9b2709567ec34c91a3416cefcd43335330e20eb..7f9216db026fa2ee8abe1cf695415ad0be237dc8 100644 (file)
@@ -1708,9 +1708,9 @@ static const struct net_device_ops xgbe_netdev_ops = {
        .ndo_set_features       = xgbe_set_features,
 };
 
-struct net_device_ops *xgbe_get_netdev_ops(void)
+const struct net_device_ops *xgbe_get_netdev_ops(void)
 {
-       return (struct net_device_ops *)&xgbe_netdev_ops;
+       return &xgbe_netdev_ops;
 }
 
 static void xgbe_rx_refresh(struct xgbe_channel *channel)
This page took 0.051524 seconds and 5 git commands to generate.