From: David Herrmann Date: Wed, 23 Jul 2014 09:38:38 +0000 (+0200) Subject: drm: make sysfs device always available for minors X-Git-Tag: omap-for-v3.17/fixes-against-rc2~125^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e17280758cc0b4f3d7065554006adcb87448f6c0;p=pandora-kernel.git drm: make sysfs device always available for minors For each minor we allocate a sysfs device as minor->kdev. Currently, this is allocated and registered in drm_minor_register(). This makes it impossible to add sysfs-attributes to the device before it is registered. Therefore, they are not added atomically, nor can we move device_add() *after* ->load() is called. This patch makes minor->kdev available early, but only adds the device during minor-registration. Note that the registration is still called before ->load() as debugfs needs to be split, too. This will be fixed in follow-ups. Reviewed-by: Daniel Vetter Reviewed-by: Alex Deucher Signed-off-by: David Herrmann --- Reading git-diff-tree failed