drm: Introduce drm_dev_set_unique()
authorThierry Reding <treding@nvidia.com>
Fri, 11 Apr 2014 13:23:00 +0000 (15:23 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 5 Jun 2014 21:14:32 +0000 (23:14 +0200)
commitca8e2ad71013049bc88a10b11d83712bfe56cdd4
treea49755ebe6640e63d9c30d0e3df608f1ad8c26b8
parent0c7dfd36b73be6d2755f7b724e5ce0bffaf04dd3
drm: Introduce drm_dev_set_unique()

Add a helper function that allows drivers to statically set the unique
name of the device. This will allow platform and USB drivers to get rid
of their DRM bus implementations and directly use drm_dev_alloc() and
drm_dev_register().

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h