Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[cascardo/linux.git] / drivers / net / ethernet / amd / xgbe / xgbe-ethtool.c
index 11d9f0c..4007b42 100644 (file)
@@ -623,7 +623,7 @@ static const struct ethtool_ops xgbe_ethtool_ops = {
        .get_ts_info = xgbe_get_ts_info,
 };
 
-struct ethtool_ops *xgbe_get_ethtool_ops(void)
+const struct ethtool_ops *xgbe_get_ethtool_ops(void)
 {
-       return (struct ethtool_ops *)&xgbe_ethtool_ops;
+       return &xgbe_ethtool_ops;
 }