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>
Showing
- drivers/gpu/drm/drm_pci.c 1 addition, 3 deletionsdrivers/gpu/drm/drm_pci.c
- drivers/gpu/drm/drm_platform.c 1 addition, 2 deletionsdrivers/gpu/drm/drm_platform.c
- drivers/gpu/drm/drm_stub.c 74 additions, 47 deletionsdrivers/gpu/drm/drm_stub.c
- drivers/gpu/drm/drm_usb.c 2 additions, 5 deletionsdrivers/gpu/drm/drm_usb.c
- include/drm/drmP.h 2 additions, 0 deletionsinclude/drm/drmP.h
Loading
Please register or sign in to comment