projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b07be4
)
xgmac: cleanups
author
stephen hemminger
<
[email protected]
>
Wed, 4 Jan 2012 13:01:16 +0000
(13:01 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 5 Jan 2012 18:23:00 +0000
(13:23 -0500)
Make local function static, make ethtool_ops const.
Compile tested only.
Signed-off-by: Stephen Hemminger <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/calxeda/xgmac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/calxeda/xgmac.c
b/drivers/net/ethernet/calxeda/xgmac.c
index 107c1b010806c4d860939ad9b4a2bb6556d0049f..1fce186a9031db45ada0c6ef553d3013d0866a57 100644
(file)
--- a/
drivers/net/ethernet/calxeda/xgmac.c
+++ b/
drivers/net/ethernet/calxeda/xgmac.c
@@
-1440,7
+1440,7
@@
static void xgmac_poll_controller(struct net_device *dev)
}
#endif
-struct rtnl_link_stats64 *
+st
atic st
ruct rtnl_link_stats64 *
xgmac_get_stats64(struct net_device *dev,
struct rtnl_link_stats64 *storage)
{
@@
-1675,7
+1675,7
@@
static int xgmac_set_wol(struct net_device *dev,
return 0;
}
-static struct ethtool_ops xgmac_ethtool_ops = {
+static
const
struct ethtool_ops xgmac_ethtool_ops = {
.get_settings = xgmac_ethtool_getsettings,
.get_link = ethtool_op_get_link,
.get_pauseparam = xgmac_get_pauseparam,