[NET]: Create netdev attribute_groups with class_device_add
authorStephen Hemminger <shemminger@osdl.org>
Sun, 7 May 2006 00:56:03 +0000 (17:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 May 2006 00:56:03 +0000 (17:56 -0700)
commitfe9925b551a95fae6ec61470c79f8b701a2fe928
tree3df1817dee3c804d155e3a1c52b6ff696bc60293
parent1498221d51a43d5fa1a580618591497d90f957d9
[NET]: Create netdev attribute_groups with class_device_add

Atomically create attributes when class device is added. This avoids
the race between registering class_device (which generates hotplug
event), and the creation of attribute groups.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c
net/core/net-sysfs.c