]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sysfs: fix hotplug regression since lifetime changes
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 21 Nov 2013 10:50:50 +0000 (20:50 +1000)
committerDave Airlie <airlied@gmail.com>
Thu, 21 Nov 2013 11:10:00 +0000 (21:10 +1000)
commit0d7402dbc8e8e068aa0285324be4ce6f7eeaa1e9
treefc301356c571ad9175c09b6c5bf35c31bfa58dac
parent8cc555b521464b37ccabec639130e67aeb17a4e7
drm/sysfs: fix hotplug regression since lifetime changes

airlied:
The lifetime changes introduced in 1a80e88745950db39866d888aea0b71d8485b137
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 <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_sysfs.c