]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add drm_dev_alloc() helper
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 2 Oct 2013 09:23:34 +0000 (11:23 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 9 Oct 2013 04:38:15 +0000 (14:38 +1000)
commit6e4484e6bc1d7fb102b37c1881576a5bbd220f7c
treef0ec6e8d7d68fe8dff496f0226ac3837fb3aac3d
parentae5c018d45a656e0fb4c3488e3ba566eb1f6f00d
drm: add drm_dev_alloc() helper

Instead of managing device allocation+initialization in each bus-driver,
we should do that in a central place. drm_fill_in_dev() already does most
of it, but also requires the global drm lock for partial AGP device
registration.

Split both apart so we have a clean device initialization/allocation
phase, and a registration phase.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_pci.c
drivers/gpu/drm/drm_platform.c
drivers/gpu/drm/drm_stub.c
drivers/gpu/drm/drm_usb.c
include/drm/drmP.h