drm: Introduce drm_dev_set_unique()
authorThierry Reding <treding@nvidia.com>
Fri, 11 Apr 2014 13:23:00 +0000 (15:23 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 11 Dec 2014 01:29:37 +0000 (10:29 +0900)
commitc91118f512e8b6b99fe995d62fa22366e645a63e
tree8cef319e8d83d94f761a46b2afbf955212d2bc71
parentbbed43429959d7f8cb020b884adb700ae2241c9c
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>
(cherry picked from commit ca8e2ad71013049bc88a10b11d83712bfe56cdd4)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h