]> err.no Git - linux-2.6/commit
driver core: Use attribute groups in struct device_type
authorDmitry Torokhov <dtor@insightbb.com>
Sat, 10 Mar 2007 06:37:34 +0000 (01:37 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:28 +0000 (10:57 -0700)
commit621a1672f7377e08a942f205d6742d8af1292aab
tree9249308b3df0675f713058e3f5ac0442ce2a5e1e
parentb8c5cec23d5c33b767a1cddebd4f8813a9563e3c
driver core: Use attribute groups in struct device_type

Driver core: use attribute groups in struct device_type

Attribute groups are more flexible than attribute lists
(an attribute list can be represented by anonymous group)
so switch struct device_type to use them.

Also rework attribute creation for devices so that they all
cleaned up properly in case of errors.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Kay Sievers <kay.sievers@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
include/linux/device.h