diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_gre.c | 1 | ||||
-rw-r--r-- | net/ipv4/ipip.c | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 3106225c5e50..ffa9f1c9dcbb 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -1132,7 +1132,6 @@ static int ipgre_close(struct net_device *dev) | |||
1132 | 1132 | ||
1133 | static void ipgre_tunnel_setup(struct net_device *dev) | 1133 | static void ipgre_tunnel_setup(struct net_device *dev) |
1134 | { | 1134 | { |
1135 | SET_MODULE_OWNER(dev); | ||
1136 | dev->uninit = ipgre_tunnel_uninit; | 1135 | dev->uninit = ipgre_tunnel_uninit; |
1137 | dev->destructor = free_netdev; | 1136 | dev->destructor = free_netdev; |
1138 | dev->hard_start_xmit = ipgre_tunnel_xmit; | 1137 | dev->hard_start_xmit = ipgre_tunnel_xmit; |
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 652bd86e33a3..5cd5bbe1379a 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c | |||
@@ -237,7 +237,6 @@ static struct ip_tunnel * ipip_tunnel_locate(struct ip_tunnel_parm *parms, int c | |||
237 | return NULL; | 237 | return NULL; |
238 | 238 | ||
239 | nt = netdev_priv(dev); | 239 | nt = netdev_priv(dev); |
240 | SET_MODULE_OWNER(dev); | ||
241 | dev->init = ipip_tunnel_init; | 240 | dev->init = ipip_tunnel_init; |
242 | nt->parms = *parms; | 241 | nt->parms = *parms; |
243 | 242 | ||
@@ -775,7 +774,6 @@ static int ipip_tunnel_change_mtu(struct net_device *dev, int new_mtu) | |||
775 | 774 | ||
776 | static void ipip_tunnel_setup(struct net_device *dev) | 775 | static void ipip_tunnel_setup(struct net_device *dev) |
777 | { | 776 | { |
778 | SET_MODULE_OWNER(dev); | ||
779 | dev->uninit = ipip_tunnel_uninit; | 777 | dev->uninit = ipip_tunnel_uninit; |
780 | dev->hard_start_xmit = ipip_tunnel_xmit; | 778 | dev->hard_start_xmit = ipip_tunnel_xmit; |
781 | dev->get_stats = ipip_tunnel_get_stats; | 779 | dev->get_stats = ipip_tunnel_get_stats; |