Searched hist:"8882 b394" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | device.h | 8882b394 Thu May 15 15:44:08 CDT 2008 Greg Kroah-Hartman <gregkh@suse.de> Driver core: add device_create_vargs and device_create_drvdata
We want to have the drvdata field set properly when creating the device as sysfs callbacks can assume it is present and it can race the later setting of this field.
So, create two new functions, deviec_create_vargs() and device_create_drvdata() that take this new field.
device_create_drvdata() will go away in 2.6.27 as the drvdata field will just be moved to the device_create() call as it should be.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> 8882b394 Thu May 15 15:44:08 CDT 2008 Greg Kroah-Hartman <gregkh@suse.de> Driver core: add device_create_vargs and device_create_drvdata We want to have the drvdata field set properly when creating the device as sysfs callbacks can assume it is present and it can race the later setting of this field. So, create two new functions, deviec_create_vargs() and device_create_drvdata() that take this new field. device_create_drvdata() will go away in 2.6.27 as the drvdata field will just be moved to the device_create() call as it should be. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
/openbmc/linux/drivers/base/ |
H A D | core.c | 8882b394 Thu May 15 15:44:08 CDT 2008 Greg Kroah-Hartman <gregkh@suse.de> Driver core: add device_create_vargs and device_create_drvdata
We want to have the drvdata field set properly when creating the device as sysfs callbacks can assume it is present and it can race the later setting of this field.
So, create two new functions, deviec_create_vargs() and device_create_drvdata() that take this new field.
device_create_drvdata() will go away in 2.6.27 as the drvdata field will just be moved to the device_create() call as it should be.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|