From: Greg Kroah-Hartman Date: Thu, 15 May 2008 20:44:08 +0000 (-0700) Subject: Driver core: add device_create_vargs and device_create_drvdata X-Git-Tag: v2.6.26-rc4~94^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8882b39421bae317e3ee864edd845e994307ce16;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed