]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Introduce device_create_groups
authorGuenter Roeck <linux@roeck-us.net>
Sun, 14 Jul 2013 23:05:57 +0000 (16:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jul 2013 17:57:37 +0000 (10:57 -0700)
commit191b4a011ce70d4a4d57952099d6e1a9bf4a6df5
treeff043a79a7864d0e50367bcbca80f6562a282ae5
parent60329d3cd722a39b999a993a7dde1cba592f31a9
driver core: Introduce device_create_groups

device_create_groups lets callers create devices as well as associated
sysfs attributes with a single call. This avoids race conditions seen
if sysfs attributes on new devices are created later.

[fixed up comment block placement and add checks for printk buffer
formats - gregkh]

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/device.h