From: David Herrmann Date: Thu, 21 Nov 2013 10:50:50 +0000 (+1000) Subject: drm/sysfs: fix hotplug regression since lifetime changes X-Git-Tag: v3.13-rc1~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=760c960bd6880cf22a57c0af9ff60c96250aad39;p=pandora-kernel.git drm/sysfs: fix hotplug regression since lifetime changes airlied: The lifetime changes introduced in 5bdebb183c9702a8c57a01dff09337be3de337a6 tried to use device_create, however that led to the regression where dev->type wasn't getting set correctly. First attempt at fixing it would have led to a race, so this undoes the device_createa work and does it all manually making sure the dev->type is setup before we register the device. Signed-off-by: David Herrmann Signed-off-by: Dave Airlie --- Reading git-diff-tree failed