diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-15 08:17:46 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-17 03:39:42 -0400 |
commit | b209aca364f2cd6820af63b5016eafbdb2f48ab1 (patch) | |
tree | d418655e24cb4c48f3f78dda40390251599fc3b2 /include/drm | |
parent | 2a6ae85a383090e2c230d878cc5f53d0917b44ee (diff) |
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
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 2f6752782a84..084fd141e8bf 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1072,6 +1072,9 @@ extern void drm_sysfs_hotplug_event(struct drm_device *dev); | |||
1072 | 1072 | ||
1073 | struct drm_device *drm_dev_alloc(struct drm_driver *driver, | 1073 | struct drm_device *drm_dev_alloc(struct drm_driver *driver, |
1074 | struct device *parent); | 1074 | struct device *parent); |
1075 | int drm_dev_init(struct drm_device *dev, | ||
1076 | struct drm_driver *driver, | ||
1077 | struct device *parent); | ||
1075 | void drm_dev_ref(struct drm_device *dev); | 1078 | void drm_dev_ref(struct drm_device *dev); |
1076 | void drm_dev_unref(struct drm_device *dev); | 1079 | void drm_dev_unref(struct drm_device *dev); |
1077 | int drm_dev_register(struct drm_device *dev, unsigned long flags); | 1080 | int drm_dev_register(struct drm_device *dev, unsigned long flags); |