diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-01-05 14:10:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-09 17:05:23 -0500 |
commit | e5686ad82ca2aeed7a8f24ffca115c0b7478dec9 (patch) | |
tree | e8adf108c0474879f18845d51556279ce9325c23 /drivers | |
parent | 1aff0cbe9d51236efba2e721a34e2c15779f95f3 (diff) |
netdev: make net_device_ops const
More drivers where net_device_ops should be const.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/tile/tilepro.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 6c46753aeb43..a6bcdb5cd2be 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c | |||
@@ -3080,7 +3080,7 @@ fw_exit: | |||
3080 | return status; | 3080 | return status; |
3081 | } | 3081 | } |
3082 | 3082 | ||
3083 | static struct net_device_ops be_netdev_ops = { | 3083 | static const struct net_device_ops be_netdev_ops = { |
3084 | .ndo_open = be_open, | 3084 | .ndo_open = be_open, |
3085 | .ndo_stop = be_close, | 3085 | .ndo_stop = be_close, |
3086 | .ndo_start_xmit = be_xmit, | 3086 | .ndo_start_xmit = be_xmit, |
diff --git a/drivers/net/ethernet/tile/tilepro.c b/drivers/net/ethernet/tile/tilepro.c index 6b75063988ec..d9951afb9269 100644 --- a/drivers/net/ethernet/tile/tilepro.c +++ b/drivers/net/ethernet/tile/tilepro.c | |||
@@ -2260,8 +2260,7 @@ static int tile_net_get_mac(struct net_device *dev) | |||
2260 | return 0; | 2260 | return 0; |
2261 | } | 2261 | } |
2262 | 2262 | ||
2263 | 2263 | static const struct net_device_ops tile_net_ops = { | |
2264 | static struct net_device_ops tile_net_ops = { | ||
2265 | .ndo_open = tile_net_open, | 2264 | .ndo_open = tile_net_open, |
2266 | .ndo_stop = tile_net_stop, | 2265 | .ndo_stop = tile_net_stop, |
2267 | .ndo_start_xmit = tile_net_tx, | 2266 | .ndo_start_xmit = tile_net_tx, |