net: call dev_alloc_name from register_netdevice
authorJiri Pirko <jpirko@redhat.com>
Sat, 30 Apr 2011 01:21:32 +0000 (01:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 May 2011 17:57:45 +0000 (10:57 -0700)
commit1c5cae815d19ffe02bdfda1260949ef2b1806171
treed47a73c05afacd21985abb8df9862136385c58f0
parente8920674979705392abc4db4ebbe78feb68a4da1
net: call dev_alloc_name from register_netdevice

Force dev_alloc_name() to be called from register_netdevice() by
dev_get_valid_name(). That allows to remove multiple explicit
dev_alloc_name() calls.

The possibility to call dev_alloc_name in advance remains.

This also fixes veth creation regresion caused by
84c49d8c3e4abefb0a41a77b25aa37ebe8d6b743

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
20 files changed:
drivers/ieee802154/fakehard.c
drivers/net/bonding/bond_main.c
drivers/net/dummy.c
drivers/net/hamradio/bpqether.c
drivers/net/ifb.c
drivers/net/tun.c
drivers/net/wan/dlci.c
drivers/net/wan/hdlc_fr.c
drivers/net/wan/lapbether.c
drivers/net/wireless/hostap/hostap_main.c
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/mwifiex/main.c
drivers/s390/net/netiucv.c
net/core/dev.c
net/core/rtnetlink.c
net/ipv4/ip_gre.c
net/ipv4/ipip.c
net/ipv6/ip6_tunnel.c
net/ipv6/sit.c
net/mac80211/iface.c