[CLASS DEVICE]: add attribute_group creation
authorStephen Hemminger <shemminger@osdl.org>
Sun, 7 May 2006 00:55:11 +0000 (17:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 May 2006 00:55:11 +0000 (17:55 -0700)
commit1498221d51a43d5fa1a580618591497d90f957d9
tree20554a3fa474c9d09f649958b85b90a3de718477
parent5528e568a760442e0ec8fd2dea1f0791875a066b
[CLASS DEVICE]: add attribute_group creation

Extend the support of attribute groups in class_device's to allow
groups to be created as part of the registration process. This allows
network device's to avoid race between registration and creating
groups.

Note that unlike attributes that are a property of the class object,
the groups are a property of the class_device object. This is done
because there are different types of network devices (wireless for
example).

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>
drivers/base/class.c
include/linux/device.h