drm: Export drm_dev_init() for subclassing
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jun 2016 12:17:46 +0000 (13:17 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 17 Jun 2016 07:39:42 +0000 (09:39 +0200)
commitb209aca364f2cd6820af63b5016eafbdb2f48ab1
treed418655e24cb4c48f3f78dda40390251599fc3b2
parent2a6ae85a383090e2c230d878cc5f53d0917b44ee
drm: Export drm_dev_init() for subclassing

In order to allow drivers to pack their privates and drm_device into one
struct (e.g. for subclassing), export the initialisation routines for
struct drm_device.

v2: Missed return ret. That error path had only one job to do!
v3: Cross-referencing drm_dev_init/drm_dev_alloc in kerneldoc, fix
missed error code for goto err_minors.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465993109-19523-2-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_drv.c
include/drm/drmP.h