diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-09-17 16:11:17 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:13 -0400 |
commit | 10d024c1b2fd58af8362670d7d6e5ae52fc33353 (patch) | |
tree | dbfb03c539986e2c1270385eb0083aaf0dfca8ab /net | |
parent | 596c5c97431eab8465739c169401ea611127b9ad (diff) |
[NET]: Nuke SET_MODULE_OWNER macro.
It's been a useless no-op for long enough in 2.6 so I figured it's time to
remove it. The number of people that could object because they're
maintaining unified 2.4 and 2.6 drivers is probably rather small.
[ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/8021q/vlan.c | 2 | ||||
-rw-r--r-- | net/bridge/br_device.c | 1 | ||||
-rw-r--r-- | net/ipv4/ip_gre.c | 1 | ||||
-rw-r--r-- | net/ipv4/ipip.c | 2 | ||||
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 1 | ||||
-rw-r--r-- | net/ipv6/sit.c | 1 | ||||
-rw-r--r-- | net/irda/irlan/irlan_eth.c | 2 | ||||
-rw-r--r-- | net/sched/sch_teql.c | 1 |
8 files changed, 0 insertions, 11 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index a9ced0a6f4c0..4d003e391754 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -350,8 +350,6 @@ static int vlan_dev_init(struct net_device *dev) | |||
350 | 350 | ||
351 | void vlan_setup(struct net_device *new_dev) | 351 | void vlan_setup(struct net_device *new_dev) |
352 | { | 352 | { |
353 | SET_MODULE_OWNER(new_dev); | ||
354 | |||
355 | ether_setup(new_dev); | 353 | ether_setup(new_dev); |
356 | 354 | ||
357 | /* new_dev->ifindex = 0; it will be set when added to | 355 | /* new_dev->ifindex = 0; it will be set when added to |
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index 99292e8e1d0f..f803e39eee28 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c | |||
@@ -171,7 +171,6 @@ void br_dev_setup(struct net_device *dev) | |||
171 | dev->set_multicast_list = br_dev_set_multicast_list; | 171 | dev->set_multicast_list = br_dev_set_multicast_list; |
172 | dev->change_mtu = br_change_mtu; | 172 | dev->change_mtu = br_change_mtu; |
173 | dev->destructor = free_netdev; | 173 | dev->destructor = free_netdev; |
174 | SET_MODULE_OWNER(dev); | ||
175 | SET_ETHTOOL_OPS(dev, &br_ethtool_ops); | 174 | SET_ETHTOOL_OPS(dev, &br_ethtool_ops); |
176 | dev->stop = br_dev_stop; | 175 | dev->stop = br_dev_stop; |
177 | dev->tx_queue_len = 0; | 176 | dev->tx_queue_len = 0; |
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; |
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 937625e577c1..2320cc27ff9e 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
@@ -1313,7 +1313,6 @@ ip6_tnl_change_mtu(struct net_device *dev, int new_mtu) | |||
1313 | 1313 | ||
1314 | static void ip6_tnl_dev_setup(struct net_device *dev) | 1314 | static void ip6_tnl_dev_setup(struct net_device *dev) |
1315 | { | 1315 | { |
1316 | SET_MODULE_OWNER(dev); | ||
1317 | dev->uninit = ip6_tnl_dev_uninit; | 1316 | dev->uninit = ip6_tnl_dev_uninit; |
1318 | dev->destructor = free_netdev; | 1317 | dev->destructor = free_netdev; |
1319 | dev->hard_start_xmit = ip6_tnl_xmit; | 1318 | dev->hard_start_xmit = ip6_tnl_xmit; |
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index e79f419b1731..466657a9a8bd 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c | |||
@@ -714,7 +714,6 @@ static int ipip6_tunnel_change_mtu(struct net_device *dev, int new_mtu) | |||
714 | 714 | ||
715 | static void ipip6_tunnel_setup(struct net_device *dev) | 715 | static void ipip6_tunnel_setup(struct net_device *dev) |
716 | { | 716 | { |
717 | SET_MODULE_OWNER(dev); | ||
718 | dev->uninit = ipip6_tunnel_uninit; | 717 | dev->uninit = ipip6_tunnel_uninit; |
719 | dev->destructor = free_netdev; | 718 | dev->destructor = free_netdev; |
720 | dev->hard_start_xmit = ipip6_tunnel_xmit; | 719 | dev->hard_start_xmit = ipip6_tunnel_xmit; |
diff --git a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c index c421521c0a99..340f04a36b02 100644 --- a/net/irda/irlan/irlan_eth.c +++ b/net/irda/irlan/irlan_eth.c | |||
@@ -60,8 +60,6 @@ static void irlan_eth_setup(struct net_device *dev) | |||
60 | dev->set_multicast_list = irlan_eth_set_multicast_list; | 60 | dev->set_multicast_list = irlan_eth_set_multicast_list; |
61 | dev->destructor = free_netdev; | 61 | dev->destructor = free_netdev; |
62 | 62 | ||
63 | SET_MODULE_OWNER(dev); | ||
64 | |||
65 | ether_setup(dev); | 63 | ether_setup(dev); |
66 | 64 | ||
67 | /* | 65 | /* |
diff --git a/net/sched/sch_teql.c b/net/sched/sch_teql.c index 0968184ea6be..146f453d7378 100644 --- a/net/sched/sch_teql.c +++ b/net/sched/sch_teql.c | |||
@@ -432,7 +432,6 @@ static __init void teql_master_setup(struct net_device *dev) | |||
432 | dev->tx_queue_len = 100; | 432 | dev->tx_queue_len = 100; |
433 | dev->flags = IFF_NOARP; | 433 | dev->flags = IFF_NOARP; |
434 | dev->hard_header_len = LL_MAX_HEADER; | 434 | dev->hard_header_len = LL_MAX_HEADER; |
435 | SET_MODULE_OWNER(dev); | ||
436 | } | 435 | } |
437 | 436 | ||
438 | static LIST_HEAD(master_dev_list); | 437 | static LIST_HEAD(master_dev_list); |